Fixed clang-tidy warnings

This commit is contained in:
Bartek Kryza
2023-03-11 22:06:53 +01:00
parent e7353d7a03
commit bcba612f65
4 changed files with 13 additions and 14 deletions

View File

@@ -140,14 +140,14 @@ diagram_t from_string(const std::string &s)
{
if (s == "class")
return diagram_t::kClass;
else if (s == "sequence")
if (s == "sequence")
return diagram_t::kSequence;
else if (s == "include")
if (s == "include")
return diagram_t::kInclude;
else if (s == "package")
if (s == "package")
return diagram_t::kPackage;
else
throw std::runtime_error{"Invalid diagram type: " + s};
throw std::runtime_error{"Invalid diagram type: " + s};
}
} // namespace clanguml::common::model