From 5c19e4df6720ed81da9c6d70a1dc41f8b0ada1d8 Mon Sep 17 00:00:00 2001 From: MARCROCK22 Date: Sun, 25 Aug 2024 21:41:48 +0000 Subject: [PATCH] fix(biome): lmao --- src/websocket/discord/socket/custom.ts | 29 +++++++++++++------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/src/websocket/discord/socket/custom.ts b/src/websocket/discord/socket/custom.ts index c0785aa..1384269 100644 --- a/src/websocket/discord/socket/custom.ts +++ b/src/websocket/discord/socket/custom.ts @@ -177,8 +177,7 @@ export class SeyfertWebSocket { } private _write(buffer: Buffer, opcode: number) { - if (!this.socket?.writable) - return; + if (!this.socket?.writable) return; const length = buffer.length; let frame; // Kinda same logic as above, but client-side @@ -201,17 +200,17 @@ export class SeyfertWebSocket { this.socket?.write(frame); } - onping(_data: string) { } + onping(_data: string) {} - onpong(_data: string) { } + onpong(_data: string) {} - onopen() { } + onopen() {} - onmessage(_payload: { data: string | Buffer }) { } + onmessage(_payload: { data: string | Buffer }) {} - onclose(_close: { code: number; reason: string }) { } + onclose(_close: { code: number; reason: string }) {} - onerror(_err: unknown) { } + onerror(_err: unknown) {} close(code: number, reason: string) { this.__closeCalled = true; @@ -281,14 +280,14 @@ export class SeyfertWebSocket { // @ts-expect-error this is private, thanks nodejs const readable = this.socket._readableState as | { - bufferIndex: number; - buffer: Buffer[]; - } + bufferIndex: number; + buffer: Buffer[]; + } | { - buffer: { - head: ReadableHeadData; - }; - }; + buffer: { + head: ReadableHeadData; + }; + }; // Num of bit read let bitIndex = 0; // Num of bit read counting since start