Method renaming.
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 18 Oct 2020 06:50:32 +0000 (08:50 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 18 Oct 2020 06:50:32 +0000 (08:50 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ChargingStation.js

index 12501d542bb1fecb7cacf1e0a42ef9056f45d803..2bed5ff0ef5ffc69c209248bccfb1ab2fc85b8c5 100644 (file)
@@ -24,7 +24,7 @@ class ChargingStation {
 
     this._isSocketRestart = false;
 
-    this._authorizedTags = this._getAuthorizedTags();
+    this._authorizedTags = this._loadAndGetAuthorizedTags();
   }
 
   _initialize() {
@@ -57,7 +57,7 @@ class ChargingStation {
     return this._stationInfo.authorizationFile ? this._stationInfo.authorizationFile : '';
   }
 
-  _getAuthorizedTags() {
+  _loadAndGetAuthorizedTags() {
     let authorizedTags = [];
     const authorizationFile = this._getAuthorizationFile();
     if (authorizationFile) {
@@ -81,7 +81,7 @@ class ChargingStation {
       try {
         logger.debug(this._basicFormatLog() + ' Authorization file ' + this._getAuthorizationFile() + ' have changed, reload');
         // Initialize _authorizedTags
-        this._authorizedTags = this._getAuthorizedTags();
+        this._authorizedTags = this._loadAndGetAuthorizedTags();
       } catch (error) {
         logger.error(this._basicFormatLog() + ' Authorization file monitoring error: ' + error);
       }