cmGlobalGenerator: Don't use else after a return.
This commit is contained in:
parent
52919ac8ac
commit
80b433b05e
|
@ -87,8 +87,7 @@ bool cmGlobalGenerator::SetGeneratorPlatform(std::string const& p,
|
|||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
std::ostringstream e;
|
||||
e <<
|
||||
"Generator\n"
|
||||
|
@ -98,7 +97,6 @@ bool cmGlobalGenerator::SetGeneratorPlatform(std::string const& p,
|
|||
"was specified.";
|
||||
mf->IssueMessage(cmake::FATAL_ERROR, e.str());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
bool cmGlobalGenerator::SetGeneratorToolset(std::string const& ts,
|
||||
|
@ -108,8 +106,6 @@ bool cmGlobalGenerator::SetGeneratorToolset(std::string const& ts,
|
|||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
std::ostringstream e;
|
||||
e <<
|
||||
"Generator\n"
|
||||
|
@ -119,7 +115,6 @@ bool cmGlobalGenerator::SetGeneratorToolset(std::string const& ts,
|
|||
"was specified.";
|
||||
mf->IssueMessage(cmake::FATAL_ERROR, e.str());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
std::string cmGlobalGenerator::SelectMakeProgram(
|
||||
|
|
Loading…
Reference in New Issue