clean code
This commit is contained in:
@@ -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}).")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user