summaryrefslogtreecommitdiff
path: root/ws/mod.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2019-01-24 13:14:03 -0500
committerRyan Dahl <ry@tinyclouds.org>2019-01-24 13:33:51 -0500
commit73d5d7c680d3973b8ca8c9eaf535918790757ee9 (patch)
treed4d13847d57b723cbd1e54a4a28946bf4e12caf5 /ws/mod.ts
parent441bc0982b1ff9c363a1e767d0a9ef7a35e6518c (diff)
format
Original: https://github.com/denoland/deno_std/commit/f911eca8d124d8b992b4b8171ad38a4d674469e3
Diffstat (limited to 'ws/mod.ts')
-rw-r--r--ws/mod.ts5
1 files changed, 1 insertions, 4 deletions
diff --git a/ws/mod.ts b/ws/mod.ts
index ace5db33d..47c6271e0 100644
--- a/ws/mod.ts
+++ b/ws/mod.ts
@@ -246,10 +246,7 @@ export async function writeFrame(frame: WebSocketFrame, writer: Writer) {
let header: Uint8Array;
const hasMask = frame.mask ? 0x80 : 0;
if (payloadLength < 126) {
- header = new Uint8Array([
- 0x80 | frame.opcode,
- hasMask | payloadLength
- ]);
+ header = new Uint8Array([0x80 | frame.opcode, hasMask | payloadLength]);
} else if (payloadLength < 0xffff) {
header = new Uint8Array([
0x80 | frame.opcode,