Variable renaming to a sensible name.
authorJérôme Benoit <jerome.benoit@sap.com>
Tue, 20 Oct 2020 20:36:33 +0000 (22:36 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Tue, 20 Oct 2020 20:36:33 +0000 (22:36 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/utils/Configuration.js

index cba1db2c3f2c9c39bbe7993694ac4b3b93964b18..3227cb0ce660d2bb2eeb2e5eaef9514f4aa417f3 100644 (file)
@@ -2,14 +2,14 @@ const fs = require('fs');
 const Utils = require('./Utils');
 
 class Configuration {
-  static configurationFile;
+  static configuration;
 
   // Read the config file
   static getConfig() {
-    if (!Configuration.configurationFile) {
-      Configuration.configurationFile = JSON.parse(fs.readFileSync('./src/assets/config.json', 'utf8'));
+    if (!Configuration.configuration) {
+      Configuration.configuration = JSON.parse(fs.readFileSync('./src/assets/config.json', 'utf8'));
     }
-    return Configuration.configurationFile;
+    return Configuration.configuration;
   }
 
   static getStatisticsDisplayInterval() {