[clang] [libclang/python] Add some logical typing changes. (PR #138074)
Vlad Serebrennikov via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 30 20:12:02 PDT 2025
================
@@ -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
More information about the cfe-commits
mailing list