refactor: cleanup string literal variables handling
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Sun, 2 Jun 2024 19:57:56 +0000 (21:57 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Sun, 2 Jun 2024 19:57:56 +0000 (21:57 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
src/charging-station/ChargingStation.ts

index 27a56f34be75c34a5975032357132433ea80fb55..def985c0447a4a6df065b32a8af94281d337c6e8 100644 (file)
@@ -2449,7 +2449,7 @@ export class ChargingStation extends EventEmitter {
       )
     } else if (this.stationInfo?.autoReconnectMaxRetries !== -1) {
       logger.error(
-        `${this.logPrefix()} WebSocket connection retries failure: maximum retries reached (${this.wsConnectionRetryCount.toString()}) or retries disabled (${this.stationInfo?.autoReconnectMaxRetries})`
+        `${this.logPrefix()} WebSocket connection retries failure: maximum retries reached (${this.wsConnectionRetryCount.toString()}) or retries disabled (${this.stationInfo?.autoReconnectMaxRetries?.toString()})`
       )
     }
   }