Skip to content

Commit

Permalink
for subjects, too: remove unnecessary metadata assignment to None
Browse files Browse the repository at this point in the history
Using the same behavior we implemented for SubjectSet, we are removing the else clause that would set _original_metadata to None in favor of allowing init() to set it to an empty dict.
  • Loading branch information
lcjohnso committed Jun 10, 2024
1 parent d0628b3 commit 230e346
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions panoptes_client/subject.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,6 @@ def set_raw(self, raw, etag=None, loaded=True):
super(Subject, self).set_raw(raw, etag, loaded)
if loaded and self.metadata:
self._original_metadata = deepcopy(self.metadata)
elif loaded:
self._original_metadata = None

def subject_workflow_status(self, workflow_id):
"""
Expand Down

0 comments on commit 230e346

Please sign in to comment.