diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-12-17 19:33:51 +1100 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-12-17 19:33:51 +1100 |
commit | 5ededaf2893425f976f609d3c5aec68f1f964451 (patch) | |
tree | bca08b39c7a5b7c569e759dcee0c9b96c2351043 /src/gateway/events | |
parent | Remove unneeded comments (diff) | |
download | server-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.ts | 6 |
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) { |