Linter fix.

This commit is contained in:
Chris McCormick 2025-09-28 18:42:12 +08:00
parent 7af50518e1
commit fee26002e6
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ export class AbstractRelay {
private async waitForPingPong() {
return new Promise((res, err) => {
// listen for pong
;(this.ws && this.ws.on) ? this.ws.on('pong', () => res(true)) : err("ws can't listen for pong")
this.ws && this.ws.on ? this.ws.on('pong', () => res(true)) : err("ws can't listen for pong")
// send a ping
this.ws && this.ws.ping && this.ws.ping()
})