Fix left-over occurrences of else-after-return

Fix issues diagnosed by clang-tidy [readability-else-after-return]

These were mostly only showing up on OSX.

Signed-off-by: Matthias Maennich <matthias@maennich.net>
This commit is contained in:
Matthias Maennich
2017-09-19 16:19:31 +02:00
committed by Brad King
parent 2033abff0d
commit 870dd06da1
5 changed files with 32 additions and 33 deletions

View File

@@ -2294,10 +2294,9 @@ bool cmFileCommand::HandleReadElfCommand(std::vector<std::string> const& args)
if (errorArg.GetString().empty()) {
this->SetError(error);
return false;
} else {
this->Makefile->AddDefinition(errorArg.GetString(), error.c_str());
return true;
}
this->Makefile->AddDefinition(errorArg.GetString(), error.c_str());
return true;
#endif
}