From d0970daacda0b6f6c2077c2f81948536b574bbe9 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Fri, 12 Jun 2020 09:19:29 -0400 Subject: make std deno-lint clean (#6240) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bartek IwaƄczuk --- std/ws/mod.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'std/ws/mod.ts') diff --git a/std/ws/mod.ts b/std/ws/mod.ts index f58828aea..4d3f79f74 100644 --- a/std/ws/mod.ts +++ b/std/ws/mod.ts @@ -262,7 +262,7 @@ class WebSocketImpl implements WebSocket { payloadsLength = 0; } break; - case OpCode.Close: + case OpCode.Close: { // [0x12, 0x34] -> 0x1234 const code = (frame.payload[0] << 8) | frame.payload[1]; const reason = decode( @@ -271,6 +271,7 @@ class WebSocketImpl implements WebSocket { await this.close(code, reason); yield { code, reason }; return; + } case OpCode.Ping: await this.enqueue({ opcode: OpCode.Pong, -- cgit v1.2.3