[PATCH] Refactor: Simplify boolean conditional return statements in lib/Edit

David Blaikie dblaikie at gmail.com
Tue May 26 12:52:47 PDT 2015


================
Comment at: lib/Edit/RewriteObjCFoundationAPI.cpp:631
@@ -630,6 +630,3 @@
 
-    if (Vals.size() != Keys.size())
-      return false;
-
-    return true;
+    return Vals.size() == Keys.size();
   }
----------------
Looks like a chain (see prior review on your changes for more detail on what I mean by this)

http://reviews.llvm.org/D10014

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the cfe-commits mailing list