Skip to content

Commit 19c7f70

Browse files
committed
Small simplification: endswith already can take a tuple of possibilities (as elsewhere)
1 parent 79cf4ab commit 19c7f70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

refresh.template.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,7 @@ def _get_commands(target: str, flags: str):
868868
target_statment = f"filter('^//', {target_statment})"
869869
if file_flags:
870870
file_path = file_flags[0]
871-
if any(file_path.endswith(extension) for extension in _get_files.source_extensions):
871+
if file_path.endswith(_get_files.source_extensions):
872872
target_statment = f"inputs('{re.escape(file_path)}', {target_statment})"
873873
else:
874874
# For header file we try to find from hdrs and srcs to get the targets

0 commit comments

Comments
 (0)