Skip to content

Commit 15d7185

Browse files
truphilnik777
andcommitted
Update llvm/utils/git/code-format-helper.py
Co-authored-by: philnik777 <[email protected]>
1 parent 94984da commit 15d7185

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

llvm/utils/git/code-format-helper.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,9 @@ def libcxx_excluded_files(self):
115115
return [excl.strip() for excl in ifd.readlines()]
116116

117117
def should_be_excluded(self, path: str) -> bool:
118-
for excl in self.libcxx_excluded_files:
119-
if path == excl:
120-
print(f"Excluding file {path}")
121-
return True
118+
if path in self.libcxx_excluded_files:
119+
print(f"Excluding file {path}")
120+
return True
122121
return False
123122

124123
def filter_changed_files(self, changed_files: [str]) -> [str]:

0 commit comments

Comments
 (0)