Skip to content

Commit 3b37924

Browse files
mydeveloperdaypaulhoad
authored andcommitted
[clang-format] A Minor change to clang-format-diff.py
Summary: Testing for None should use the 'is' operator. Reviewed By: MyDeveloperDay Patch By: eagleoflqj Tags: #clang-format Differential Revision: https://reviews.llvm.org/D77974
1 parent 072ae7c commit 3b37924

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/tools/clang-format/clang-format-diff.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def main():
6565
match = re.search(r'^\+\+\+\ (.*?/){%s}(\S*)' % args.p, line)
6666
if match:
6767
filename = match.group(2)
68-
if filename == None:
68+
if filename is None:
6969
continue
7070

7171
if args.regex is not None:

0 commit comments

Comments
 (0)