Refactor apply_updates method to return edit_error instead of err.

This commit is contained in:
Paul Gauthier 2023-05-14 15:01:50 -07:00
parent 28533ad23e
commit 37a4c47282

View file

@ -255,9 +255,9 @@ class Coder:
if interrupted:
return
edited, err = self.apply_updates(content, inp)
if err:
return err
edited, edit_error = self.apply_updates(content, inp)
if edit_error:
return edit_error
if edited and self.auto_commits:
self.auto_commit()