From e76bd89bc188896c24fb5307a16a0a64eede8f2f Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Tue, 3 Sep 2024 15:39:23 -0700 Subject: [PATCH] style: remove unnecessary whitespace and simplify list comprehension --- aider/repomap.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/aider/repomap.py b/aider/repomap.py index 45433fa0d..51ae9db0a 100644 --- a/aider/repomap.py +++ b/aider/repomap.py @@ -507,12 +507,9 @@ class RepoMap: other_rel_fnames = sorted(set(self.get_rel_fname(fname) for fname in other_fnames)) special_fnames = filter_important_files(other_rel_fnames) ranked_tags_fnames = set(tag[0] for tag in ranked_tags) - special_fnames = [ - fn for fn in special_fnames if fn not in ranked_tags_fnames - ] + special_fnames = [fn for fn in special_fnames if fn not in ranked_tags_fnames] special_fnames = [(fn,) for fn in special_fnames] - ranked_tags = special_fnames + ranked_tags spin.step()