From e81a16116943c644d8e4a5d0a9b69eb97da5fe52 Mon Sep 17 00:00:00 2001 From: Jakub Jezek Date: Mon, 26 Jun 2023 17:09:33 +0200 Subject: [PATCH] code readability --- openpype/hosts/resolve/api/workio.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/openpype/hosts/resolve/api/workio.py b/openpype/hosts/resolve/api/workio.py index 55b69f7734..bc32f7802e 100644 --- a/openpype/hosts/resolve/api/workio.py +++ b/openpype/hosts/resolve/api/workio.py @@ -87,9 +87,7 @@ def current_file(): name = project.GetName() fname = name + exported_project_ext current_file = os.path.join(current_dir, fname) - if not current_file: - return None - return os.path.normpath(current_file) + return os.path.normpath(current_file) if current_file else None def work_root(session):