From 9e9ddf706b4c76166d7f8f011a73eb802fc893f2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Tue, 14 Nov 2023 18:16:05 +0100 Subject: [PATCH] build(ci): fix linter errors MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/charging-station/ChargingStation.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/charging-station/ChargingStation.ts b/src/charging-station/ChargingStation.ts index 7d9895b8..60d8f8b4 100644 --- a/src/charging-station/ChargingStation.ts +++ b/src/charging-station/ChargingStation.ts @@ -1787,7 +1787,7 @@ export class ChargingStation extends EventEmitter { } } - private async onClose(code: number, reason: Buffer): Promise { + private async onClose(code: WebSocketCloseEventStatusCode, reason: Buffer): Promise { switch (code) { // Normal close case WebSocketCloseEventStatusCode.CLOSE_NORMAL: @@ -1892,7 +1892,7 @@ export class ChargingStation extends EventEmitter { private async onMessage(data: RawData): Promise { let request: IncomingRequest | Response | ErrorResponse | undefined; - let messageType: number | undefined; + let messageType: MessageType | undefined; let errorMsg: string; try { // eslint-disable-next-line @typescript-eslint/no-base-to-string -- 2.34.1