refactor: remove now uneeded sanity check at worker message handling
authorJérôme Benoit <jerome.benoit@sap.com>
Thu, 20 Jul 2023 18:01:07 +0000 (20:01 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Thu, 20 Jul 2023 18:01:07 +0000 (20:01 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/Bootstrap.ts

index 37fe0e6b5ae7c5506df07f5d17b94af3b37abfcf..ac1dd88c64b22871644a9cca2597c32678d8075d 100644 (file)
@@ -260,9 +260,6 @@ export class Bootstrap extends EventEmitter {
     //     2,
     //   )}`,
     // );
-    if (isNullOrUndefined(msg?.event)) {
-      return;
-    }
     try {
       switch (msg.event) {
         case ChargingStationWorkerMessageEvents.started: