diff options
author | Alex Turbov <i.zaufi@gmail.com> | 2022-10-26 09:24:55 (GMT) |
---|---|---|
committer | Alex Turbov <i.zaufi@gmail.com> | 2022-11-17 12:37:12 (GMT) |
commit | f6180485bb475bf10a7d14d6bbd87831e58e942a (patch) | |
tree | 46ac15e09a9d59c30ad17ddffde55a10ad2b660f /Source/CPack/cpack.cxx | |
parent | d7c183f35cf3e149e20c3adc2a03f36a242d10f9 (diff) | |
download | CMake-f6180485bb475bf10a7d14d6bbd87831e58e942a.zip CMake-f6180485bb475bf10a7d14d6bbd87831e58e942a.tar.gz CMake-f6180485bb475bf10a7d14d6bbd87831e58e942a.tar.bz2 |
cpack.cxx: Eliminate redundant `if`
Diffstat (limited to 'Source/CPack/cpack.cxx')
-rw-r--r-- | Source/CPack/cpack.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Source/CPack/cpack.cxx b/Source/CPack/cpack.cxx index e4bf828..d1938fd 100644 --- a/Source/CPack/cpack.cxx +++ b/Source/CPack/cpack.cxx @@ -632,9 +632,5 @@ int main(int argc, char const* const* argv) return !doc.PrintRequestedDocumentation(std::cout); } - if (cmSystemTools::GetErrorOccurredFlag()) { - return 1; - } - - return 0; + return int(cmSystemTools::GetErrorOccurredFlag()); } |