diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2016-08-18 17:47:32 (GMT) |
---|---|---|
committer | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2016-08-18 17:47:32 (GMT) |
commit | 7f97a6c94b59be7e7eba7362ce3eecdcff79ab70 (patch) | |
tree | f87d376ea5dc8c4f0f54faef0c6f14c4eaf52d7d /Source/CPack/cmCPackRPMGenerator.cxx | |
parent | 4988b914e1fb7ca215436738ab08ed199a6f63d2 (diff) | |
download | CMake-7f97a6c94b59be7e7eba7362ce3eecdcff79ab70.zip CMake-7f97a6c94b59be7e7eba7362ce3eecdcff79ab70.tar.gz CMake-7f97a6c94b59be7e7eba7362ce3eecdcff79ab70.tar.bz2 |
CPack: don't use else after return
Diffstat (limited to 'Source/CPack/cmCPackRPMGenerator.cxx')
-rw-r--r-- | Source/CPack/cmCPackRPMGenerator.cxx | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/Source/CPack/cmCPackRPMGenerator.cxx b/Source/CPack/cmCPackRPMGenerator.cxx index 2568d17..5d81a49 100644 --- a/Source/CPack/cmCPackRPMGenerator.cxx +++ b/Source/CPack/cmCPackRPMGenerator.cxx @@ -215,15 +215,11 @@ int cmCPackRPMGenerator::PackageFiles() // There will be 1 package for each component group // however one may require to ignore component group and // in this case you'll get 1 package for each component. - else { - return PackageComponents(componentPackageMethod == - ONE_PACKAGE_PER_COMPONENT); - } + return PackageComponents(componentPackageMethod == + ONE_PACKAGE_PER_COMPONENT); } // CASE 3 : NON COMPONENT package. - else { - return PackageComponentsAllInOne(""); - } + return PackageComponentsAllInOne(""); } bool cmCPackRPMGenerator::SupportsComponentInstallation() const @@ -247,7 +243,6 @@ std::string cmCPackRPMGenerator::GetComponentInstallDirNameSuffix( "CPACK_COMPONENT_" + cmSystemTools::UpperCase(componentName) + "_GROUP"; if (CM_NULLPTR != GetOption(groupVar)) { return std::string(GetOption(groupVar)); - } else { - return componentName; } + return componentName; } |