summary refs log tree commit diff
path: root/src/gateway/events
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-12-17 19:33:51 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-12-17 19:33:51 +1100
commit5ededaf2893425f976f609d3c5aec68f1f964451 (patch)
treebca08b39c7a5b7c569e759dcee0c9b96c2351043 /src/gateway/events
parentRemove unneeded comments (diff)
downloadserver-5ededaf2893425f976f609d3c5aec68f1f964451.tar.xz
Remove fluent-ffmpeg dep. TODO: Merge puyo's PR
Diffstat (limited to 'src/gateway/events')
-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) {