[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
This commit is contained in:
mydeveloperday 2020-04-13 15:08:07 +01:00 committed by paulhoad
parent 072ae7c1e6
commit 3b379246c3
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ def main():
match = re.search(r'^\+\+\+\ (.*?/){%s}(\S*)' % args.p, line)
if match:
filename = match.group(2)
if filename == None:
if filename is None:
continue
if args.regex is not None: