From: Jérôme Benoit Date: Mon, 26 Dec 2022 19:39:06 +0000 (+0100) Subject: Remove unneeded connexion URLs shallow copy X-Git-Tag: v1.1.89~54 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=f70425a594e1c30c01bbd818857922ece1f43969;p=e-mobility-charging-stations-simulator.git Remove unneeded connexion URLs shallow copy Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ChargingStation.ts b/src/charging-station/ChargingStation.ts index 20122c40..3f113359 100644 --- a/src/charging-station/ChargingStation.ts +++ b/src/charging-station/ChargingStation.ts @@ -1905,9 +1905,7 @@ export default class ChargingStation { } private getConfiguredSupervisionUrl(): URL { - const supervisionUrls = ( - this.stationInfo.supervisionUrls ?? Configuration.getSupervisionUrls() - ).slice(); + const supervisionUrls = this.stationInfo.supervisionUrls ?? Configuration.getSupervisionUrls(); if (!Utils.isEmptyArray(supervisionUrls)) { switch (Configuration.getSupervisionUrlDistribution()) { case SupervisionUrlDistribution.ROUND_ROBIN: