From: Jérôme Benoit Date: Tue, 20 Oct 2020 20:36:33 +0000 (+0200) Subject: Variable renaming to a sensible name. X-Git-Tag: v1.0.1-0~259 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=868cb6d18cc1b2047dea824719c9212ea96a0933;p=e-mobility-charging-stations-simulator.git Variable renaming to a sensible name. Signed-off-by: Jérôme Benoit --- diff --git a/src/utils/Configuration.js b/src/utils/Configuration.js index cba1db2c..3227cb0c 100644 --- a/src/utils/Configuration.js +++ b/src/utils/Configuration.js @@ -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() {