diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2023-07-26 19:43:06 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2023-07-30 22:33:07 (GMT) |
commit | 1c334644851fd5e5ac92748d1355da3bfdc6f85f (patch) | |
tree | b61069eec9eb68f462b483eacf365e2c6935511e /Source | |
parent | 709c185d8f850451d13d282c050d9d1c6a106a1a (diff) | |
download | CMake-1c334644851fd5e5ac92748d1355da3bfdc6f85f.zip CMake-1c334644851fd5e5ac92748d1355da3bfdc6f85f.tar.gz CMake-1c334644851fd5e5ac92748d1355da3bfdc6f85f.tar.bz2 |
clang-tidy: fix `readability-else-after-return` lints
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmGlobalXCodeGenerator.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index 2ce872a..14fe832 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -1179,11 +1179,11 @@ std::string GetTargetObjectDirArch(T const& target, cmList archs{ target.GetSafeProperty("OSX_ARCHITECTURES") }; if (archs.size() > 1) { return "$(CURRENT_ARCH)"; - } else if (archs.size() == 1) { + } + if (archs.size() == 1) { return archs.front(); - } else { - return defaultVal; } + return defaultVal; } } // anonymous |