From: Jérôme Benoit Date: Mon, 29 Nov 2021 21:05:10 +0000 (+0100) Subject: Remove useless condition test X-Git-Tag: v1.1.36~11 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=d8ff9d67d91a9aa8ac525de54ed0248066ac94f2;p=e-mobility-charging-stations-simulator.git Remove useless condition test Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/WebSocketServices/ui/0.0.1/UIService.ts b/src/charging-station/WebSocketServices/ui/0.0.1/UIService.ts index f2db4512..6c507fd8 100644 --- a/src/charging-station/WebSocketServices/ui/0.0.1/UIService.ts +++ b/src/charging-station/WebSocketServices/ui/0.0.1/UIService.ts @@ -19,7 +19,7 @@ export default class UIService extends AbstractUIService { async handleMessage(version: ProtocolVersion, command: ProtocolCommand, payload: Record): Promise { let messageResponse: Record; - if (this.messageHandlers.has(command) && command !== ProtocolCommand.UNKNOWN) { + if (this.messageHandlers.has(command)) { try { // Call the method to build the response messageResponse = await this.messageHandlers.get(command)(payload);