From: Jérôme Benoit Date: Mon, 26 Sep 2022 21:25:03 +0000 (+0200) Subject: Strict boolean check in src/charging-station/UIServiceWorkerBroadcastChannel.ts X-Git-Tag: v1.1.74~14 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=c56450e3b2ecbe265caadd9f87a9ef0bf231a70f;p=e-mobility-charging-stations-simulator.git Strict boolean check in src/charging-station/UIServiceWorkerBroadcastChannel.ts Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/UIServiceWorkerBroadcastChannel.ts b/src/charging-station/UIServiceWorkerBroadcastChannel.ts index 5139b678..e323056c 100644 --- a/src/charging-station/UIServiceWorkerBroadcastChannel.ts +++ b/src/charging-station/UIServiceWorkerBroadcastChannel.ts @@ -59,11 +59,12 @@ export default class UIServiceWorkerBroadcastChannel extends WorkerBroadcastChan } private buildResponsePayload(uuid: string): ResponsePayload { - const responsesStatus = this.responses - .get(uuid) - ?.responses.every(({ status }) => status === ResponseStatus.SUCCESS) - ? ResponseStatus.SUCCESS - : ResponseStatus.FAILURE; + const responsesStatus = + this.responses + .get(uuid) + ?.responses.every(({ status }) => status === ResponseStatus.SUCCESS) === true + ? ResponseStatus.SUCCESS + : ResponseStatus.FAILURE; return { status: responsesStatus, hashIdsSucceeded: this.responses