mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed 'Remove the unnecessary boolean literals' code smell.
This commit is contained in:
@@ -125,7 +125,7 @@ def load_servers():
|
||||
file_path.lstrip('/').lstrip('\\')
|
||||
)
|
||||
|
||||
if file_path is not None and os.path.exists(file_path):
|
||||
if file_path and os.path.exists(file_path):
|
||||
try:
|
||||
with open(file_path, 'r') as j:
|
||||
data = json.loads(j.read())
|
||||
|
||||
Reference in New Issue
Block a user