build(simulator): silence linter error
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 28 Jan 2024 18:28:48 +0000 (19:28 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 28 Jan 2024 18:28:48 +0000 (19:28 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ocpp/OCPPRequestService.ts

index 17fc548438ac612c6fe6274d12a9d88c338a70fb..8627c004592aa07f9c6f6e6da0ef8bd6c76e9d1d 100644 (file)
@@ -453,7 +453,7 @@ export abstract class OCPPRequestService {
           (messagePayload as OCPPError).code,
           (messagePayload as OCPPError).message,
           (messagePayload as OCPPError).details ?? {
-            command: (messagePayload as OCPPError).command ?? commandName
+            command: (messagePayload as OCPPError).command
           }
         ] satisfies ErrorResponse)
         break