From d45af94cee29d3e1a526e574fc9be6c8beed7798 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Tue, 11 Mar 2025 17:33:57 -0700 Subject: [PATCH] refactor: Simplify original read-only files check in _drop_all_files method --- aider/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/commands.py b/aider/commands.py index dc51712c9..a4ad017ed 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -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: