mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 00:35:00 +00:00
cleanup
This commit is contained in:
parent
2edace4e5f
commit
f1cfbe9c36
1 changed files with 0 additions and 10 deletions
|
@ -1665,14 +1665,4 @@ class Coder:
|
|||
return []
|
||||
|
||||
def apply_edits(self, edits):
|
||||
for edit in edits:
|
||||
path, content = edit
|
||||
full_path = self.abs_root_path(path)
|
||||
if not os.path.exists(full_path):
|
||||
self.io.tool_error(f"Error: File {path} does not exist. Skipping edits.")
|
||||
continue
|
||||
|
||||
if not self.dry_run:
|
||||
with open(full_path, "w", encoding=self.io.encoding) as f:
|
||||
f.write(content)
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue