From 6fa3fcbd0ed240ad106843a9222f0ee99e0423d8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Wed, 27 Jan 2021 14:18:30 +0100 Subject: [PATCH] Cleanup: renaming. 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/charging-station/ChargingStation.ts b/src/charging-station/ChargingStation.ts index e419d81e..d6996ee4 100644 --- a/src/charging-station/ChargingStation.ts +++ b/src/charging-station/ChargingStation.ts @@ -67,7 +67,7 @@ export default class ChargingStation { this.requests = {} as Requests; this.messageQueue = [] as string[]; - this.authorizedTags = this._loadAndGetAuthorizedTags(); + this.authorizedTags = this._getAuthorizedTags(); } _getChargingStationId(stationTemplate: ChargingStationTemplate): string { @@ -204,7 +204,7 @@ export default class ChargingStation { return !Utils.isUndefined(this.stationInfo.useConnectorId0) ? this.stationInfo.useConnectorId0 : true; } - _loadAndGetAuthorizedTags(): string[] { + _getAuthorizedTags(): string[] { let authorizedTags: string[] = []; const authorizationFile = this._getAuthorizationFile(); if (authorizationFile) { @@ -522,7 +522,7 @@ export default class ChargingStation { try { logger.debug(this._logPrefix() + ' Authorization file ' + this._getAuthorizationFile() + ' have changed, reload'); // Initialize _authorizedTags - this.authorizedTags = this._loadAndGetAuthorizedTags(); + this.authorizedTags = this._getAuthorizedTags(); } catch (error) { logger.error(this._logPrefix() + ' Authorization file monitoring error: %j', error); } -- 2.34.1