From: Jérôme Benoit Date: Mon, 19 Oct 2020 10:54:36 +0000 (+0200) Subject: Variable renaming. X-Git-Tag: v1.0.1-0~279 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=d20c21a0906551f6d22f07688ca2cd9b10bbd84b;p=e-mobility-charging-stations-simulator.git Variable renaming. Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ChargingStation.js b/src/charging-station/ChargingStation.js index 30330463..be4f1613 100644 --- a/src/charging-station/ChargingStation.js +++ b/src/charging-station/ChargingStation.js @@ -635,13 +635,13 @@ class ChargingStation { }); } } else { - for (const configuration of commandPayload.key) { - const keyFound = this._getConfigurationKey(configuration); + for (const configurationKey of commandPayload.key) { + const keyFound = this._getConfigurationKey(configurationKey); if (keyFound) { if (Utils.isUndefined(keyFound.visible)) { keyFound.visible = true; } else { - keyFound.visible = Utils.convertToBoolean(configuration.visible); + keyFound.visible = Utils.convertToBoolean(configurationKey.visible); } if (!keyFound.visible) { continue; @@ -652,7 +652,7 @@ class ChargingStation { value: keyFound.value, }); } else { - unknownKey.push(configuration); + unknownKey.push(configurationKey); } } }