diff options
author | Alex Turbov <i.zaufi@gmail.com> | 2021-07-12 21:56:10 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-07-13 12:35:27 (GMT) |
commit | 45a6fa0c336d4fcecde8017aafa626c7eceec074 (patch) | |
tree | 9d9171cdd92ac98c424b647bb960830b71ec1ac4 /Source/CPack | |
parent | 700abe7bca0486a2d67383b2e8e364db241566b5 (diff) | |
download | CMake-45a6fa0c336d4fcecde8017aafa626c7eceec074.zip CMake-45a6fa0c336d4fcecde8017aafa626c7eceec074.tar.gz CMake-45a6fa0c336d4fcecde8017aafa626c7eceec074.tar.bz2 |
Refactor: Drop unnecessary `if` before `return`
Diffstat (limited to 'Source/CPack')
-rw-r--r-- | Source/CPack/cmCPackDebGenerator.cxx | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/Source/CPack/cmCPackDebGenerator.cxx b/Source/CPack/cmCPackDebGenerator.cxx index 14f3f50..43d732e 100644 --- a/Source/CPack/cmCPackDebGenerator.cxx +++ b/Source/CPack/cmCPackDebGenerator.cxx @@ -834,10 +834,7 @@ int cmCPackDebGenerator::createDeb() this->IsSet("GEN_CPACK_DEBIAN_PACKAGE_CONTROL_STRICT_PERMISSION"), this->packageFiles); - if (!gen.generate()) { - return 0; - } - return 1; + return gen.generate(); } int cmCPackDebGenerator::createDbgsymDDeb() @@ -890,10 +887,7 @@ int cmCPackDebGenerator::createDbgsymDDeb() this->IsSet("GEN_CPACK_DEBIAN_PACKAGE_CONTROL_STRICT_PERMISSION"), this->packageFiles); - if (!gen.generate()) { - return 0; - } - return 1; + return gen.generate(); } bool cmCPackDebGenerator::SupportsComponentInstallation() const |