mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 17:55:01 +00:00
fix: drop unused var added_fnames
from cmd_add
This commit is contained in:
parent
3995accd0c
commit
fc5c040b83
1 changed files with 0 additions and 4 deletions
|
@ -555,8 +555,6 @@ class Commands:
|
||||||
def cmd_add(self, args):
|
def cmd_add(self, args):
|
||||||
"Add files to the chat so aider can edit them or review them in detail"
|
"Add files to the chat so aider can edit them or review them in detail"
|
||||||
|
|
||||||
added_fnames = []
|
|
||||||
|
|
||||||
all_matched_files = set()
|
all_matched_files = set()
|
||||||
|
|
||||||
filenames = parse_quoted_filenames(args)
|
filenames = parse_quoted_filenames(args)
|
||||||
|
@ -618,7 +616,6 @@ class Commands:
|
||||||
self.io.tool_output(
|
self.io.tool_output(
|
||||||
f"Moved {matched_file} from read-only to editable files in the chat"
|
f"Moved {matched_file} from read-only to editable files in the chat"
|
||||||
)
|
)
|
||||||
added_fnames.append(matched_file)
|
|
||||||
else:
|
else:
|
||||||
self.io.tool_error(
|
self.io.tool_error(
|
||||||
f"Cannot add {matched_file} as it's not part of the repository"
|
f"Cannot add {matched_file} as it's not part of the repository"
|
||||||
|
@ -637,7 +634,6 @@ class Commands:
|
||||||
self.coder.abs_fnames.add(abs_file_path)
|
self.coder.abs_fnames.add(abs_file_path)
|
||||||
self.io.tool_output(f"Added {matched_file} to the chat")
|
self.io.tool_output(f"Added {matched_file} to the chat")
|
||||||
self.coder.check_added_files()
|
self.coder.check_added_files()
|
||||||
added_fnames.append(matched_file)
|
|
||||||
|
|
||||||
def completions_drop(self):
|
def completions_drop(self):
|
||||||
files = self.coder.get_inchat_relative_files()
|
files = self.coder.get_inchat_relative_files()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue