Remove warning

This commit is contained in:
Franck Royer 2021-05-19 12:55:39 +10:00
parent 8e1f82563e
commit ed69122ac3
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 2 additions and 0 deletions

View File

@ -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 => {