code readability

This commit is contained in:
Jakub Jezek 2023-06-26 17:09:33 +02:00
parent 117706bca4
commit e81a161169
No known key found for this signature in database
GPG key ID: 730D7C02726179A7

View file

@ -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):