From d8ff9d67d91a9aa8ac525de54ed0248066ac94f2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 29 Nov 2021 22:05:10 +0100 Subject: [PATCH] Remove useless condition test MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/charging-station/WebSocketServices/ui/0.0.1/UIService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.34.1