From 00a0c182bebd1e59dc2bf2723ded7f494f13323b Mon Sep 17 00:00:00 2001 From: Cora Cordes Date: Sat, 20 Nov 2021 19:42:06 +0100 Subject: [PATCH] Removed unused lines --- src/modules_core/service/module_service.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/modules_core/service/module_service.py b/src/modules_core/service/module_service.py index abb1f76..0cc4241 100644 --- a/src/modules_core/service/module_service.py +++ b/src/modules_core/service/module_service.py @@ -30,7 +30,6 @@ class ModuleService(ModuleServiceABC): self._logger.debug(__name__, 'Start on_ready modules') modules = self._modules.where(lambda m: issubclass(m, OnReadyABC)) for module_type in modules: - module_type = module_type module: OnReadyABC = self._services.get_service(module_type) await module.on_ready() self._logger.debug(__name__, 'Stopped on_ready modules') @@ -46,7 +45,6 @@ class ModuleService(ModuleServiceABC): self._logger.debug(__name__, 'Start on_message modules') modules = self._modules.where(lambda m: issubclass(m, OnMessageABC)) for module_type in modules: - module_type = module_type module: OnMessageABC = self._services.get_service(module_type) await module.on_message(message) self._logger.debug(__name__, f'Stopped on_message modules')