mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-06-09 22:02:10 +02:00
Remove redundant conditions
As mentioned in C++ Core Guidelines ES.87.
This commit is contained in:
@@ -50,7 +50,7 @@ Configuration::Configuration(const fs::path& config_path,
|
||||
|
||||
// If the table is missing some fields then they will simply be left at
|
||||
// their defaults
|
||||
if (toml::table* config = value.as_table(); config != nullptr) {
|
||||
if (toml::table* config = value.as_table()) {
|
||||
group = (*config)["group"].value<std::string>();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user