From: Jérôme Benoit Date: Mon, 5 Jun 2023 15:44:43 +0000 (+0200) Subject: refactor: trivial cleanups X-Git-Tag: v1.2.16~12 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=022a231c76e227205b0124a7aef8e16ceb86a1d9;p=e-mobility-charging-stations-simulator.git refactor: trivial cleanups Signed-off-by: Jérôme Benoit --- 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, });