From bc1e3a70596b66eafd09c272681824afdd6b68aa Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Wed, 27 Nov 2024 17:35:11 -0800 Subject: [PATCH] style: format list comprehension to single line --- aider/commands.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/aider/commands.py b/aider/commands.py index 58b1c764a..fea6a208d 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -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: