From: Jérôme Benoit Date: Wed, 27 Jan 2021 13:18:30 +0000 (+0100) Subject: Cleanup: renaming. X-Git-Tag: v1.0.1-0~105^2~12 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=6fa3fcbd0ed240ad106843a9222f0ee99e0423d8;p=e-mobility-charging-stations-simulator.git Cleanup: renaming. Signed-off-by: Jérôme Benoit --- 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); }