summaryrefslogtreecommitdiff
path: root/Source/cmFindPathCommand.cxx
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2016-09-16 22:45:24 +0200
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2016-09-16 22:45:24 +0200
commit516f8edb2e061749c56b6f9a58332fbf59e45a1a (patch)
tree82ebe3f38b5248ef0b78586019ac1dca44ce2370 /Source/cmFindPathCommand.cxx
parentd9f5d3c50fe376423382d6445f7fb2906a43469e (diff)
downloadcmake-516f8edb2e061749c56b6f9a58332fbf59e45a1a.tar.gz
Avoid else after return
Diffstat (limited to 'Source/cmFindPathCommand.cxx')
-rw-r--r--Source/cmFindPathCommand.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmFindPathCommand.cxx b/Source/cmFindPathCommand.cxx
index d71fc1ae95..d8f87950e5 100644
--- a/Source/cmFindPathCommand.cxx
+++ b/Source/cmFindPathCommand.cxx
@@ -136,9 +136,8 @@ std::string cmFindPathCommand::FindNormalHeader()
if (cmSystemTools::FileExists(tryPath.c_str())) {
if (this->IncludeFileInPath) {
return tryPath;
- } else {
- return *p;
}
+ return *p;
}
}
}