refactor: cleanup charging station events handling code
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 5 Feb 2024 12:07:10 +0000 (13:07 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 5 Feb 2024 12:07:10 +0000 (13:07 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/Bootstrap.ts

index 1dcad015822788a32d534cbd7574822b1f077170..f238d9515e1ba989d09176963323787b193c4cd7 100644 (file)
@@ -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: '${