From ed69122ac312fb4c8da291c0c7eb036c9a64605f Mon Sep 17 00:00:00 2001 From: Franck Royer Date: Wed, 19 May 2021 12:55:39 +1000 Subject: [PATCH] Remove warning --- src/lib/waku_relay/relay_heartbeat.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/waku_relay/relay_heartbeat.ts b/src/lib/waku_relay/relay_heartbeat.ts index 054af00c96..dc28b2996c 100644 --- a/src/lib/waku_relay/relay_heartbeat.ts +++ b/src/lib/waku_relay/relay_heartbeat.ts @@ -37,6 +37,8 @@ export class RelayHeartbeat extends Heartbeat { this._heartbeatTimer = { _intervalId: undefined, runPeriodically: (fn, period): void => { + // this._heartbeatTimer cannot be null, it is being assigned. + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion this._heartbeatTimer!._intervalId = setInterval(fn, period); }, cancel: (): void => {