mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-10-25 06:07:39 -05:00
Some clumsy coding related fixes reported by SonarQube.
This commit is contained in:
1 parent
a23fad0ba8
commit
641f7bbe9d
17 files changed
+181
-205
No files matched your search
@@ -648,11 +648,11 @@ class Filemanager(object):
|
||||
user_path = u"{0}/".format(user_path)
|
||||
else:
|
||||
# filter files based on file_type
|
||||
if file_type is not None and file_type != "*":
|
||||
if folders_only or len(supported_types) > 0 and \
|
||||
file_extension not in supported_types or \
|
||||
file_type != file_extension:
|
||||
continue
|
||||
if file_type is not None and file_type != "*" and \
|
||||
(folders_only or len(supported_types) > 0 and
|
||||
file_extension not in supported_types or
|
||||
file_type != file_extension):
|
||||
continue
|
||||
|
||||
# create a list of files and folders
|
||||
files[f] = {
|
||||
|
||||
Reference in new issue
Block a user