Skip to content

Commit

Permalink
Avoid reimplementing stop_recording when saving.
Browse files Browse the repository at this point in the history
  • Loading branch information
terjekv committed Dec 6, 2023
1 parent b4097d0 commit 35d8316
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mreg_cli/outputmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,7 @@ def save_recording(self) -> None:
with open(self._filename, "w") as rec_file:
json.dump(self._recorded_data, rec_file, indent=2)

self._recording = False
self._recorded_data = []
self._filename = None
self.stop_recording()

def is_recording(self) -> bool:
"""Returns True if recording is active."""
Expand Down

0 comments on commit 35d8316

Please sign in to comment.