diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2020-06-12 09:19:29 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-12 09:19:29 -0400 |
commit | d0970daacda0b6f6c2077c2f81948536b574bbe9 (patch) | |
tree | f116548be832ae6786449dd6f1257865efe38026 /std/ws | |
parent | ca1c2ee82207f2ead857ab4aeca48edff16827ae (diff) |
make std deno-lint clean (#6240)
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Diffstat (limited to 'std/ws')
-rw-r--r-- | std/ws/mod.ts | 3 |
1 files changed, 2 insertions, 1 deletions
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, |