cleanup: remove unused assignation and if stmt

the function doesn't return anything (see function signature)
This commit is contained in:
Jordan ⌨️ 2023-11-25 12:17:58 +01:00 committed by Sleepy Monax
parent 69aa190d9e
commit d8b7a1630c

View file

@ -36,8 +36,4 @@ def loadAll():
for files in shell.readdir(pluginDir):
if files.endswith(".py"):
plugin = load(os.path.join(pluginDir, files))
if plugin:
_logger.info(f"Loaded plugin {plugin.name}")
plugin.init()
load(os.path.join(pluginDir, files))