Skip to content

Commit

Permalink
drop dup if
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeplf committed May 16, 2022
1 parent ca446ef commit 93fc19a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -549,13 +549,10 @@ class SimulationConfig::Parser
const auto element = it.find(name);
if (element != it.end()) {
buf = element->get<Type>();
raiseIfInvalidEnum(name, buf, element->dump(), std::is_enum<Type>());
} else if (default_value != nonstd::nullopt) {
buf = default_value.value();
}

if (element != it.end()) {
raiseIfInvalidEnum(name, buf, element->dump(), std::is_enum<Type>());
}
}

SimulationConfig::Run parseRun() const {
Expand Down

0 comments on commit 93fc19a

Please sign in to comment.