summary refs log tree commit diff
path: root/src/gateway/events/Message.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/gateway/events/Message.ts')
-rw-r--r--src/gateway/events/Message.ts6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gateway/events/Message.ts b/src/gateway/events/Message.ts
index b112fba0..12b6f8b9 100644
--- a/src/gateway/events/Message.ts
+++ b/src/gateway/events/Message.ts
@@ -16,10 +16,8 @@ export async function Message(this: WebSocket, buffer: WS.Data) {
 	// TODO: compression
 	var data: Payload;
 
-	if (
-		(buffer instanceof Buffer && buffer[0] === 123) ||
-		(typeof buffer === "string")
-	) {
+	if ((buffer instanceof Buffer && buffer[0] === 123) ||
+		(typeof buffer === "string")) {
 		data = bigIntJson.parse(buffer.toString());
 	}
 	else if (this.encoding === "json" && buffer instanceof Buffer) {