mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 08:14:59 +00:00
cleanup
This commit is contained in:
parent
b02000caa9
commit
9d821dbca6
1 changed files with 4 additions and 4 deletions
|
@ -329,7 +329,7 @@ class Coder:
|
|||
if interrupted:
|
||||
return
|
||||
|
||||
edited, edit_error = self.apply_updates(content, inp)
|
||||
edited, edit_error = self.apply_updates(content)
|
||||
if edit_error:
|
||||
return edit_error
|
||||
|
||||
|
@ -468,7 +468,7 @@ class Coder:
|
|||
if live:
|
||||
live.stop()
|
||||
|
||||
def update_files(self, content, inp):
|
||||
def update_files(self, content):
|
||||
# might raise ValueError for malformed ORIG/UPD blocks
|
||||
edits = list(utils.find_original_update_blocks(content))
|
||||
|
||||
|
@ -675,9 +675,9 @@ class Coder:
|
|||
def get_addable_relative_files(self):
|
||||
return set(self.get_all_relative_files()) - set(self.get_inchat_relative_files())
|
||||
|
||||
def apply_updates(self, content, inp):
|
||||
def apply_updates(self, content):
|
||||
try:
|
||||
edited = self.update_files(content, inp)
|
||||
edited = self.update_files(content)
|
||||
return edited, None
|
||||
except ValueError as err:
|
||||
err = err.args[0]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue