mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed code smells having rule 'Nested blocks of code should not be left empty'.
This commit is contained in:
committed by
Akshay Joshi
parent
707ff450b5
commit
c7a16a4bd5
@@ -192,7 +192,7 @@ def filename_with_file_manager_path(_file, _present=False):
|
||||
if not _present:
|
||||
# Touch the file to get the short path of the file on windows.
|
||||
with open(_file, 'a'):
|
||||
pass
|
||||
return fs_short_path(_file)
|
||||
else:
|
||||
if not os.path.isfile(_file):
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user