From e1a3f3c1528a82673d616a96b7b14ba96a664dab Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 5 Feb 2024 13:07:10 +0100 Subject: [PATCH] refactor: cleanup charging station events handling code MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/charging-station/Bootstrap.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/charging-station/Bootstrap.ts b/src/charging-station/Bootstrap.ts index 1dcad015..f238d951 100644 --- a/src/charging-station/Bootstrap.ts +++ b/src/charging-station/Bootstrap.ts @@ -351,6 +351,8 @@ export class Bootstrap extends EventEmitter { msg.data as Statistics ) break + case ChargingStationWorkerMessageEvents.addedWorkerElement: + break case ChargingStationWorkerMessageEvents.workerElementError: logger.error( `${this.logPrefix()} ${moduleName}.messageHandler: Error occurred while handling '${(msg.data as ChargingStationWorkerEventError).event}' event on worker:`, @@ -358,8 +360,6 @@ export class Bootstrap extends EventEmitter { ) this.emit(ChargingStationWorkerMessageEvents.workerElementError, msg.data) break - case ChargingStationWorkerMessageEvents.addedWorkerElement: - break default: throw new BaseError( `Unknown charging station worker event: '${ -- 2.34.1