summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2023-07-26 19:43:06 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2023-07-30 22:33:07 (GMT)
commit1c334644851fd5e5ac92748d1355da3bfdc6f85f (patch)
treeb61069eec9eb68f462b483eacf365e2c6935511e /Source
parent709c185d8f850451d13d282c050d9d1c6a106a1a (diff)
downloadCMake-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.cxx6
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