From 022a231c76e227205b0124a7aef8e16ceb86a1d9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 5 Jun 2023 17:44:43 +0200 Subject: [PATCH] refactor: trivial cleanups MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/charging-station/ocpp/1.6/OCPP16ServiceUtils.ts | 3 +-- src/charging-station/ocpp/OCPPConstants.ts | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/charging-station/ocpp/1.6/OCPP16ServiceUtils.ts b/src/charging-station/ocpp/1.6/OCPP16ServiceUtils.ts index c73c32dc..4ddeed55 100644 --- a/src/charging-station/ocpp/1.6/OCPP16ServiceUtils.ts +++ b/src/charging-station/ocpp/1.6/OCPP16ServiceUtils.ts @@ -843,8 +843,7 @@ export class OCPP16ServiceUtils extends OCPPServiceUtils { public static async isIdTagAuthorized( chargingStation: ChargingStation, connectorId: number, - idTag: string, - parentIdTag?: string + idTag: string ): Promise { let authorized = false; const connectorStatus = chargingStation.getConnectorStatus(connectorId); diff --git a/src/charging-station/ocpp/OCPPConstants.ts b/src/charging-station/ocpp/OCPPConstants.ts index b3f4dd32..9d3fc74b 100644 --- a/src/charging-station/ocpp/OCPPConstants.ts +++ b/src/charging-station/ocpp/OCPPConstants.ts @@ -105,7 +105,7 @@ export class OCPPConstants { static readonly OCPP_DATA_TRANSFER_RESPONSE_REJECTED = Object.freeze({ status: DataTransferStatus.REJECTED, }); - + static readonly OCPP_DATA_TRANSFER_RESPONSE_UNKNOWN_VENDOR_ID = Object.freeze({ status: DataTransferStatus.UNKNOWN_VENDOR_ID, }); -- 2.34.1