From 847c5243ac4d0d01c1f5d2d363a494fa686f6d73 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Thu, 20 Jul 2023 20:01:07 +0200 Subject: [PATCH] refactor: remove now uneeded sanity check at worker message handling 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 | 3 --- 1 file changed, 3 deletions(-) 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: -- 2.34.1