update files on the happy path

This commit is contained in:
Paul Gauthier 2023-06-22 17:32:34 -07:00
parent 82813d4159
commit 22a5e493a7

View file

@ -727,6 +727,8 @@ class Coder:
full_path = os.path.abspath(os.path.join(self.root, path)) full_path = os.path.abspath(os.path.join(self.root, path))
if full_path in self.abs_fnames: if full_path in self.abs_fnames:
if not self.dry_run and write_content:
Path(full_path).write_text(write_content)
return full_path return full_path
if not Path(full_path).exists(): if not Path(full_path).exists():