refactor: simplify file name matching logic in get_all_relative_files

This commit is contained in:
Paul Gauthier 2024-11-26 06:33:28 -08:00 committed by Paul Gauthier (aider)
parent 266093189d
commit cbd339190b

View file

@ -585,8 +585,6 @@ class Coder:
for fname in self.get_all_relative_files():
base = Path(fname).with_suffix("").name.lower()
# Only skip if we already have a file with this name AND
# the base name matches the identifier
if len(base) >= 5:
all_fnames[base].add(fname)