refactor an if condition

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
This commit is contained in:
Mustafa Taher 2024-05-23 12:34:54 +03:00 committed by GitHub
parent 8fc726f77b
commit 4bef6c9911
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -42,7 +42,7 @@ class ValidateSingleFrame(pyblish.api.InstancePlugin,
frame_end = instance.data.get("frameEndHandle")
# This happens if instance node has no 'trange' parameter.
if (frame_start or frame_end) is None:
if frame_start is None or frame_end is None:
cls.log.debug(
"No frame data, skipping check.."
)