================
@@ -2888,8 +2896,7 @@ def string(self):
 
         if res:
             return CompletionString(res)
-        else:
-            None
+        return None
----------------
Endilll wrote:

Can you invert this if statement, so that we do early exit on unhappy code 
paths?

https://github.com/llvm/llvm-project/pull/138074
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to