style: format list comprehension to single line

This commit is contained in:
Paul Gauthier (aider) 2024-11-27 17:35:11 -08:00
parent ba17dceb4d
commit bc1e3a7059

View file

@ -820,9 +820,7 @@ class Commands:
else:
# Use substring matching like we do for read-only files
matched_files = [
self.coder.get_rel_fname(f)
for f in self.coder.abs_fnames
if expanded_word in f
self.coder.get_rel_fname(f) for f in self.coder.abs_fnames if expanded_word in f
]
if not matched_files: