From f6180485bb475bf10a7d14d6bbd87831e58e942a Mon Sep 17 00:00:00 2001 From: Alex Turbov Date: Wed, 26 Oct 2022 13:24:55 +0400 Subject: cpack.cxx: Eliminate redundant `if` --- Source/CPack/cpack.cxx | 6 +----- 1 file changed, 1 insertion(+), 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()); } -- cgit v0.12