Remove useless condition test
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 29 Nov 2021 21:05:10 +0000 (22:05 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 29 Nov 2021 21:05:10 +0000 (22:05 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
src/charging-station/WebSocketServices/ui/0.0.1/UIService.ts

index f2db451240135a182d0921cac1bcc28c9a19f121..6c507fd8f07f74bb631d15aef02d0fa1e7edd4d5 100644 (file)
@@ -19,7 +19,7 @@ export default class UIService extends AbstractUIService {
 
   async handleMessage(version: ProtocolVersion, command: ProtocolCommand, payload: Record<string, unknown>): Promise<void> {
     let messageResponse: Record<string, unknown>;
-    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);