mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 02:05:00 +00:00
style: format code with linter
This commit is contained in:
parent
f03718a48f
commit
e1ce4f1b9f
1 changed files with 5 additions and 3 deletions
|
@ -909,7 +909,9 @@ class Commands:
|
|||
abs_file_path = Path(temp_file_path).resolve()
|
||||
|
||||
# Check if a file with the same name already exists in the chat
|
||||
existing_file = next((f for f in self.coder.abs_fnames if Path(f).name == abs_file_path.name), None)
|
||||
existing_file = next(
|
||||
(f for f in self.coder.abs_fnames if Path(f).name == abs_file_path.name), None
|
||||
)
|
||||
if existing_file:
|
||||
self.coder.abs_fnames.remove(existing_file)
|
||||
self.io.tool_output(f"Replaced existing image in the chat: {existing_file}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue