expansions: I don’t need to check is_file() here
- ID
67c8351- date
2026-04-18 16:34:06+00:00- author
Alex Chan <alex@alexwlchan.net>- parent
9b066e4- message
expansions: I don't need to check `is_file()` here- changed files
1 file, 1 addition, 1 deletion
Changed files
expansions/get_file_paths.py (697) → expansions/get_file_paths.py (695)
diff --git a/expansions/get_file_paths.py b/expansions/get_file_paths.py
index aaf82c2..b5eec33 100644
--- a/expansions/get_file_paths.py
+++ b/expansions/get_file_paths.py
@@ -20,7 +20,7 @@ def get_file_paths_under(
for f in filenames:
p = dirpath / f
- if p.is_file() and f.lower().endswith(suffix):
+ if not suffix or f.lower().endswith(suffix):
yield p