mirror of
https://github.com/logos-messaging/js-waku.git
synced 2026-01-05 23:33:08 +00:00
Remove warning
This commit is contained in:
parent
8e1f82563e
commit
ed69122ac3
@ -37,6 +37,8 @@ export class RelayHeartbeat extends Heartbeat {
|
|||||||
this._heartbeatTimer = {
|
this._heartbeatTimer = {
|
||||||
_intervalId: undefined,
|
_intervalId: undefined,
|
||||||
runPeriodically: (fn, period): void => {
|
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);
|
this._heartbeatTimer!._intervalId = setInterval(fn, period);
|
||||||
},
|
},
|
||||||
cancel: (): void => {
|
cancel: (): void => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user