Browse Source

clang-tidy: fix `readability-else-after-return` lints

Ben Boeckel 2 years ago
parent
commit
1c33464485
1 changed files with 3 additions and 3 deletions
  1. 3 3
      Source/cmGlobalXCodeGenerator.cxx

+ 3 - 3
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