From 99d387c6929f885c07523fcaad3012b0ce31df4d Mon Sep 17 00:00:00 2001 From: Kristian Krsnik Date: Wed, 2 Aug 2023 20:35:08 +0200 Subject: [PATCH] made more concise --- dyn_gandi/main.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/dyn_gandi/main.py b/dyn_gandi/main.py index 4bb7f76..b8e90f3 100644 --- a/dyn_gandi/main.py +++ b/dyn_gandi/main.py @@ -1,10 +1,7 @@ import requests, json, re, os from datetime import datetime -def loadSettings(path = None) -> dict: - if path is None: - path = f"{os.path.expanduser('~')}/config.json" - +def loadSettings(path = f"{os.path.expanduser('~')}/config.json") -> dict: # TODO: check integrity try: with open(path, 'r') as file: