mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 08:44:59 +00:00
refactor: Simplify original read-only files check in _drop_all_files method
This commit is contained in:
parent
1f874b654d
commit
d45af94cee
1 changed files with 1 additions and 1 deletions
|
@ -361,7 +361,7 @@ class Commands:
|
|||
self.coder.abs_fnames = set()
|
||||
|
||||
# When dropping all files, keep those that were originally provided via args.read
|
||||
if hasattr(self, "original_read_only_fnames") and self.original_read_only_fnames:
|
||||
if self.original_read_only_fnames:
|
||||
# Keep only the original read-only files
|
||||
to_keep = set()
|
||||
for abs_fname in self.coder.abs_read_only_fnames:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue