Apply suggestions from code review

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
This commit is contained in:
Robin De Lillo 2024-12-16 11:07:21 +01:00 committed by GitHub
parent 145688d56f
commit 8b663ef440
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -178,8 +178,10 @@ class CollectOtioSubsetResources(
repre = self._create_representation(
frame_start, frame_end, collection=collection)
if ("review" in instance.data["families"] and
not instance.data.get("otioReviewClips")):
if (
not instance.data.get("otioReviewClips")
and "review" in instance.data["families"]
):
review_repre = self._create_representation(
frame_start, frame_end, collection=collection,
delete=True, review=True)
@ -198,8 +200,10 @@ class CollectOtioSubsetResources(
repre = self._create_representation(
frame_start, frame_end, file=filename, trim=_trim)
if ("review" in instance.data["families"] and
not instance.data.get("otioReviewClips")):
if (
not instance.data.get("otioReviewClips")
and "review" in instance.data["families"]
):
review_repre = self._create_representation(
frame_start, frame_end,
file=filename, delete=True, review=True)