diff options
author | Matthias Maennich <matthias@maennich.net> | 2017-09-19 14:19:31 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-09-28 11:23:42 (GMT) |
commit | 870dd06da15751250786d435ee4c1361a2b10b4d (patch) | |
tree | 3a59f41d841e62356b088c9c82f37153f36c003d /Source/CPack/cmCPackPKGGenerator.cxx | |
parent | 2033abff0dec29072ac070cb6fe1604e8c03f180 (diff) | |
download | CMake-870dd06da15751250786d435ee4c1361a2b10b4d.zip CMake-870dd06da15751250786d435ee4c1361a2b10b4d.tar.gz CMake-870dd06da15751250786d435ee4c1361a2b10b4d.tar.bz2 |
Fix left-over occurrences of else-after-return
Fix issues diagnosed by clang-tidy [readability-else-after-return]
These were mostly only showing up on OSX.
Signed-off-by: Matthias Maennich <matthias@maennich.net>
Diffstat (limited to 'Source/CPack/cmCPackPKGGenerator.cxx')
-rw-r--r-- | Source/CPack/cmCPackPKGGenerator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/CPack/cmCPackPKGGenerator.cxx b/Source/CPack/cmCPackPKGGenerator.cxx index 321b6a7..4f5b2a0 100644 --- a/Source/CPack/cmCPackPKGGenerator.cxx +++ b/Source/CPack/cmCPackPKGGenerator.cxx @@ -42,9 +42,9 @@ std::string cmCPackPKGGenerator::GetPackageName( out << cmSystemTools::GetFilenameWithoutLastExtension(packagesDir) << "-" << component.Name << ".pkg"; return out.str(); - } else { - return component.ArchiveFile + ".pkg"; } + + return component.ArchiveFile + ".pkg"; } void cmCPackPKGGenerator::WriteDistributionFile(const char* metapackageFile) |