Merge pull request #172 from status-im/remove-warnings

Remove warning
This commit is contained in:
Franck Royer 2021-05-20 15:48:58 +10:00 committed by GitHub
commit 0263a38e04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 => {