mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 09:44:59 +00:00
rely on io.dry_run
This commit is contained in:
parent
4ee5c49a04
commit
85c3bb8f12
4 changed files with 8 additions and 12 deletions
|
@ -138,8 +138,7 @@ class EditBlockFunctionCoder(Coder):
|
|||
content = self.io.read_text(full_path)
|
||||
content = do_replace(full_path, content, original, updated)
|
||||
if content:
|
||||
if not self.dry_run:
|
||||
self.io.write_text(full_path, content)
|
||||
self.io.write_text(full_path, content)
|
||||
edited.add(path)
|
||||
continue
|
||||
self.io.tool_error(f"Failed to apply edit to {path}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue