From: Jérôme Benoit Date: Tue, 30 Jan 2024 20:14:35 +0000 (+0100) Subject: refactor: cleanup type definition in internal messaging X-Git-Tag: v1.2.34~15 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=ae2f7bc017445da9af276d1d120a8d0a9dfc1faa;p=e-mobility-charging-stations-simulator.git refactor: cleanup type definition in internal messaging Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/broadcast-channel/ChargingStationWorkerBroadcastChannel.ts b/src/charging-station/broadcast-channel/ChargingStationWorkerBroadcastChannel.ts index c6e37f60..89f828b5 100644 --- a/src/charging-station/broadcast-channel/ChargingStationWorkerBroadcastChannel.ts +++ b/src/charging-station/broadcast-channel/ChargingStationWorkerBroadcastChannel.ts @@ -285,8 +285,7 @@ export class ChargingStationWorkerBroadcastChannel extends WorkerBroadcastChanne return } let responsePayload: BroadcastChannelResponsePayload | undefined - // eslint-disable-next-line @typescript-eslint/no-invalid-void-type - let commandResponse: CommandResponse | void + let commandResponse: CommandResponse | undefined this.commandHandler(command, requestPayload) .then(commandResponse => { if (commandResponse == null || isEmptyObject(commandResponse)) {