mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 14:25:00 +00:00
Remove unused local variable 'new_files_str' from coder.py.
# Context: USER: coder.py:99:13: F841 local variable 'new_files_str' is assigned to but never used ASSISTANT: I will remove the unused local variable 'new_files_str' from the file. ```python coder.py <<<<<<< ORIGINAL new_files_str = "\n ".join(new_files) self.console.print(f"[red bold]\nFiles not tracked in {repo.git_dir}:") for fn in new_files: self.console.print(f"[red bold] {fn}") ======= self.console.print(f"[red bold]Files not tracked in {repo.git_dir}:") for fn in new_files: self.console.print(f"[red bold] {fn}") >>>>>>> UPDATED ```
This commit is contained in:
parent
7a48e4606b
commit
c6d369742a
1 changed files with 2 additions and 4 deletions
6
coder.py
6
coder.py
|
@ -94,11 +94,9 @@ class Coder:
|
|||
new_files.append(relative_fname)
|
||||
|
||||
if new_files:
|
||||
new_files_str = "\n ".join(new_files)
|
||||
self.console.print(f"[red bold]\nFiles not tracked in {repo.git_dir}:")
|
||||
self.console.print(f"[red bold]Files not tracked in {repo.git_dir}:")
|
||||
for fn in new_files:
|
||||
self.console.print(f"[red bold] {fn}")
|
||||
|
||||
self.console.print(f"[red bold] {fn}")
|
||||
if Confirm.ask("[bold red]Add them?", console=self.console):
|
||||
for relative_fname in new_files:
|
||||
repo.git.add(relative_fname)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue