diff --git a/ws/mod.ts b/ws/mod.ts index ace5db33d4..47c6271e0c 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, diff --git a/ws/sha1.ts b/ws/sha1.ts index 916bbd9b34..38101fb22e 100644 --- a/ws/sha1.ts +++ b/ws/sha1.ts @@ -64,7 +64,7 @@ export class Sha1 { let code, index = 0, i, - start = this._start, + start = this._start, length = message.length || 0, blocks = this._blocks; @@ -369,8 +369,7 @@ export class Sha1 { arrayBuffer() { this.finalize(); - return Uint32Array.of( - this._h0, this._h1, this._h2, this._h3, this._h4 - ).buffer; + return Uint32Array.of(this._h0, this._h1, this._h2, this._h3, this._h4) + .buffer; } }