From 28f7553187d201088c8a1009365db4ecbe03e568 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Mon, 2 Feb 2026 18:49:17 -0300 Subject: [PATCH] fix a type so jsr is happy. --- abstract-relay.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/abstract-relay.ts b/abstract-relay.ts index 0baf0d0..bc598c6 100644 --- a/abstract-relay.ts +++ b/abstract-relay.ts @@ -384,10 +384,10 @@ export class AbstractRelay { // this is the function assigned to this.ws.onmessage // it's exposed for testing and debugging purposes - public _onmessage(ev: MessageEvent) { + public _onmessage(ev: MessageEvent): void { const json = ev.data if (!json) { - return false + return } // shortcut EVENT sub