ifcparse: fix clang-tidy warning readability-else-after-return

This commit is contained in:
Dirk Olbrich
2023-10-24 12:21:32 +02:00
committed by Thomas Krijnen
parent b264408d85
commit 9f40674d91
12 changed files with 160 additions and 161 deletions
+1 -2
View File
@@ -122,9 +122,8 @@ class IFC_PARSE_API IfcWriteArgument : public Argument {
const T& as() const {
if (const T* val = boost::get<T>(&container)) {
return *val;
} else {
throw IfcParse::IfcException("Invalid cast");
}
throw IfcParse::IfcException("Invalid cast");
}
template <typename T>