Remove redundant conditions

As mentioned in C++ Core Guidelines ES.87.
This commit is contained in:
Robbert van der Helm
2020-06-05 22:18:40 +02:00
parent 047163c6f5
commit ff298f3f46
4 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -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>();
}