Remove useless condition test
[e-mobility-charging-stations-simulator.git] / 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);