diff --git a/src/config/config.cc b/src/config/config.cc index 16c45b76..8d7bd707 100644 --- a/src/config/config.cc +++ b/src/config/config.cc @@ -314,7 +314,7 @@ std::shared_ptr parse_diagram_config(const Node &d) if (diagram_type == "package") { return std::make_shared(d.as()); } - else if (diagram_type == "include") { + if (diagram_type == "include") { return std::make_shared(d.as()); } diff --git a/src/decorators/decorators.cc b/src/decorators/decorators.cc index a31b1dfd..3a2b05b8 100644 --- a/src/decorators/decorators.cc +++ b/src/decorators/decorators.cc @@ -35,7 +35,7 @@ std::shared_ptr decorator::from_string(std::string_view c) if (c.find(skip::label) == 0) { return skip::from_string(c); } - else if (c.find(style::label) == 0) { + if (c.find(style::label) == 0) { return style::from_string(c); } else if (c.find(aggregation::label) == 0) {