summaryrefslogtreecommitdiff
path: root/Source/cmFunctionCommand.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/cmFunctionCommand.cxx
parentd9f5d3c50fe376423382d6445f7fb2906a43469e (diff)
downloadcmake-516f8edb2e061749c56b6f9a58332fbf59e45a1a.tar.gz
Avoid else after return
Diffstat (limited to 'Source/cmFunctionCommand.cxx')
-rw-r--r--Source/cmFunctionCommand.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmFunctionCommand.cxx b/Source/cmFunctionCommand.cxx
index bda96aa21c..8aa1b770ff 100644
--- a/Source/cmFunctionCommand.cxx
+++ b/Source/cmFunctionCommand.cxx
@@ -169,10 +169,9 @@ bool cmFunctionFunctionBlocker::IsFunctionBlocked(
// remove the function blocker now that the function is defined
mf.RemoveFunctionBlocker(this, lff);
return true;
- } else {
- // decrement for each nested function that ends
- this->Depth--;
}
+ // decrement for each nested function that ends
+ this->Depth--;
}
// if it wasn't an endfunction and we are not executing then we must be