mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-06 04:03:27 +03:00
Style: Don't put an else after a return.
This commit is contained in:
1 parent
ad304a2f7d
commit
e3b7eac593
1 file changed
-3
@@ -266,8 +266,6 @@ struct CompilerIdNode : public cmGeneratorExpressionNode
|
||||
{
|
||||
return compilerId ? compilerId : "";
|
||||
}
|
||||
else
|
||||
{
|
||||
cmsys::RegularExpression compilerIdValidator;
|
||||
compilerIdValidator.compile("^[A-Za-z0-9_]*$");
|
||||
if (!compilerIdValidator.find(parameters.begin()->c_str()))
|
||||
@@ -286,7 +284,6 @@ struct CompilerIdNode : public cmGeneratorExpressionNode
|
||||
return "1";
|
||||
}
|
||||
return "0";
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user