Applied llvm-else-after-return clang-tidy fixes

This commit is contained in:
Bartek Kryza
2022-12-24 13:34:21 +01:00
parent f48269606d
commit b734018673
2 changed files with 2 additions and 2 deletions

View File

@@ -314,7 +314,7 @@ std::shared_ptr<clanguml::config::diagram> parse_diagram_config(const Node &d)
if (diagram_type == "package") {
return std::make_shared<package_diagram>(d.as<package_diagram>());
}
else if (diagram_type == "include") {
if (diagram_type == "include") {
return std::make_shared<include_diagram>(d.as<include_diagram>());
}

View File

@@ -35,7 +35,7 @@ std::shared_ptr<decorator> 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) {