From: Jérôme Benoit Date: Thu, 20 Jul 2023 18:01:07 +0000 (+0200) Subject: refactor: remove now uneeded sanity check at worker message handling X-Git-Tag: v1.2.20~180 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=847c5243ac4d0d01c1f5d2d363a494fa686f6d73;p=e-mobility-charging-stations-simulator.git refactor: remove now uneeded sanity check at worker message handling Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/Bootstrap.ts b/src/charging-station/Bootstrap.ts index 37fe0e6b..ac1dd88c 100644 --- a/src/charging-station/Bootstrap.ts +++ b/src/charging-station/Bootstrap.ts @@ -260,9 +260,6 @@ export class Bootstrap extends EventEmitter { // 2, // )}`, // ); - if (isNullOrUndefined(msg?.event)) { - return; - } try { switch (msg.event) { case ChargingStationWorkerMessageEvents.started: