From: Jérôme Benoit Date: Fri, 4 Dec 2020 15:51:05 +0000 (+0100) Subject: Removed useless type conversion. X-Git-Tag: v1.0.1-0~166 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=b9863834948c360e10755a5df6504c6b1a613146;p=e-mobility-charging-stations-simulator.git Removed useless type conversion. Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ChargingStation.ts b/src/charging-station/ChargingStation.ts index 9367f653..1da63faa 100644 --- a/src/charging-station/ChargingStation.ts +++ b/src/charging-station/ChargingStation.ts @@ -1120,7 +1120,7 @@ export default class ChargingStation { handleResponseBootNotification(payload: BootNotificationResponse, requestPayload: BootNotificationRequest): void { if (payload.status === RegistrationStatus.ACCEPTED) { - this._heartbeatInterval = Utils.convertToInt(payload.interval) * 1000; + this._heartbeatInterval = payload.interval * 1000; this._heartbeatSetInterval ? this._restartHeartbeat() : this._startHeartbeat(); this._addConfigurationKey('HeartBeatInterval', payload.interval.toString()); this._addConfigurationKey('HeartbeatInterval', payload.interval.toString(), false, false);