Cleanup: renaming.
authorJérôme Benoit <jerome.benoit@sap.com>
Wed, 27 Jan 2021 13:18:30 +0000 (14:18 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Wed, 27 Jan 2021 13:18:30 +0000 (14:18 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ChargingStation.ts

index e419d81eb38729ccf5585fc01db3238780655aa5..d6996ee4ab380e8abc3dc971035ba9510f9ee39c 100644 (file)
@@ -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);
       }