Style: Don't put an else after a return.
This commit is contained in:
parent
ad304a2f7d
commit
e3b7eac593
|
@ -266,8 +266,6 @@ struct CompilerIdNode : public cmGeneratorExpressionNode
|
||||||
{
|
{
|
||||||
return compilerId ? compilerId : "";
|
return compilerId ? compilerId : "";
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
cmsys::RegularExpression compilerIdValidator;
|
cmsys::RegularExpression compilerIdValidator;
|
||||||
compilerIdValidator.compile("^[A-Za-z0-9_]*$");
|
compilerIdValidator.compile("^[A-Za-z0-9_]*$");
|
||||||
if (!compilerIdValidator.find(parameters.begin()->c_str()))
|
if (!compilerIdValidator.find(parameters.begin()->c_str()))
|
||||||
|
@ -286,7 +284,6 @@ struct CompilerIdNode : public cmGeneratorExpressionNode
|
||||||
return "1";
|
return "1";
|
||||||
}
|
}
|
||||||
return "0";
|
return "0";
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue