Skip to content

Commit

Permalink
fix: fix nullish exception
Browse files Browse the repository at this point in the history
Signed-off-by: Jérôme Benoit <[email protected]>
  • Loading branch information
Jérôme Benoit committed Jan 10, 2024
1 parent 0b5c37b commit 73b78a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/charging-station/ChargingStation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1779,7 +1779,7 @@ export class ChargingStation extends EventEmitter {
this.stationInfo?.registrationMaxRetries !== -1 && ++registrationRetryCount
await sleep(
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
this.bootNotificationResponse.interval != null
this.bootNotificationResponse?.interval != null
? secondsToMilliseconds(this.bootNotificationResponse.interval)
: Constants.DEFAULT_BOOT_NOTIFICATION_INTERVAL
)
Expand Down

0 comments on commit 73b78a1

Please sign in to comment.