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"
|
||||
@ -99,7 +98,6 @@ bool cmGlobalGenerator::SetGeneratorPlatform(std::string const& p,
|
||||
mf->IssueMessage(cmake::FATAL_ERROR, e.str());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
bool cmGlobalGenerator::SetGeneratorToolset(std::string const& ts,
|
||||
cmMakefile* mf)
|
||||
@ -108,8 +106,6 @@ bool cmGlobalGenerator::SetGeneratorToolset(std::string const& ts,
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
std::ostringstream e;
|
||||
e <<
|
||||
"Generator\n"
|
||||
@ -120,7 +116,6 @@ bool cmGlobalGenerator::SetGeneratorToolset(std::string const& ts,
|
||||
mf->IssueMessage(cmake::FATAL_ERROR, e.str());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
std::string cmGlobalGenerator::SelectMakeProgram(
|
||||
const std::string& inMakeProgram,
|
||||
|
Loading…
x
Reference in New Issue
Block a user