Move variable initialization closer to its use

This commit is contained in:
Fabia Serra Arrizabalaga 2023-02-21 18:45:18 +01:00 committed by Jakub Trllo
parent 03c64a7290
commit 271b19a90d

View file

@ -27,11 +27,11 @@ class IntegrateShotgridPublish(pyblish.api.InstancePlugin):
local_path = get_publish_repre_path(
instance, representation, False
)
code = os.path.basename(local_path)
if representation.get("tags", []):
continue
code = os.path.basename(local_path)
published_file = self._find_existing_publish(
code, context, shotgrid_version
)