From d20c21a0906551f6d22f07688ca2cd9b10bbd84b Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 19 Oct 2020 12:54:36 +0200 Subject: [PATCH] Variable renaming. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/charging-station/ChargingStation.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); } } } -- 2.34.1