Fixed 'Remove the unnecessary boolean literals' code smell.

This commit is contained in:
Akshay Joshi
2022-09-09 15:23:18 +05:30
parent ec47a2aa66
commit 3b95a416ca
21 changed files with 221 additions and 224 deletions

View File

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