From 7b6349da4dc968691f1a374211fcc153c8b4f1c6 Mon Sep 17 00:00:00 2001 From: Daniel Pfeifer Date: Thu, 18 Aug 2016 20:36:29 +0200 Subject: CMake: don't use else after return --- Source/cmListFileCache.cxx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'Source/cmListFileCache.cxx') diff --git a/Source/cmListFileCache.cxx b/Source/cmListFileCache.cxx index 28b3781488..1967d2a1af 100644 --- a/Source/cmListFileCache.cxx +++ b/Source/cmListFileCache.cxx @@ -259,10 +259,9 @@ bool cmListFileParser::AddArgument(cmListFileLexer_Token* token, if (isError) { this->Makefile->IssueMessage(cmake::FATAL_ERROR, m.str()); return false; - } else { - this->Makefile->IssueMessage(cmake::AUTHOR_WARNING, m.str()); - return true; } + this->Makefile->IssueMessage(cmake::AUTHOR_WARNING, m.str()); + return true; } struct cmListFileBacktrace::Entry : public cmListFileContext @@ -377,10 +376,9 @@ cmListFileContext const& cmListFileBacktrace::Top() const { if (this->Cur) { return *this->Cur; - } else { - static cmListFileContext const empty; - return empty; } + static cmListFileContext const empty; + return empty; } void cmListFileBacktrace::PrintTitle(std::ostream& out) const -- cgit v1.2.1