turn guard into positive check
@@ -183,9 +183,7 @@ def update_settings(min_version, usr_dir_abs):
return settings
usr_settings_path = os.path.join(usr_dir_abs, SETTINGS_FILE)
- if not os.path.exists(usr_settings_path):
- return
-
+ if os.path.exists(usr_settings_path):
# not working with a single context and 'w+'
with open(usr_settings_path, "r") as rf:
settings = json.load(rf)
