clean code

This commit is contained in:
yuanmengqi
2025-06-10 04:06:54 +00:00
parent caf487b7cc
commit 7315aec6e6
29 changed files with 8 additions and 749 deletions

View File

@@ -101,12 +101,6 @@ class SetupController:
"path": str, the path on the VM to store the downloaded file
}
"""
# if not config:
# return
# if not 'download' in config:
# return
# for url, path in config['download']:
for f in files:
url: str = f["url"]
path: str = f["path"]
@@ -193,12 +187,6 @@ class SetupController:
logger.error("An error occurred while trying to send the request: %s", e)
def _change_wallpaper_setup(self, path: str):
# if not config:
# return
# if not 'wallpaper' in config:
# return
# path = config['wallpaper']
if not path:
raise Exception(f"Setup Wallpaper - Invalid path ({path}).")
@@ -221,11 +209,6 @@ class SetupController:
raise NotImplementedError()
def _open_setup(self, path: str):
# if not config:
# return
# if not 'open' in config:
# return
# for path in config['open']:
if not path:
raise Exception(f"Setup Open - Invalid path ({path}).")