Skip to content

Commit 6b15bef

Browse files
Update cpp_linter_hooks/clang_tidy.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent d01022f commit 6b15bef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cpp_linter_hooks/clang_tidy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def _exec_clang_tidy(command) -> Tuple[int, str]:
104104

105105

106106
def _looks_like_source_file(path: str) -> bool:
107-
return any(suffix.lower() in SOURCE_FILE_SUFFIXES for suffix in Path(path).suffixes)
107+
return Path(path).suffix.lower() in SOURCE_FILE_SUFFIXES
108108

109109

110110
def _split_source_files(args: List[str]) -> Tuple[List[str], List[str]]:

0 commit comments

Comments
 (0)