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/http/server.ts | |
parent | ca1c2ee82207f2ead857ab4aeca48edff16827ae (diff) |
make std deno-lint clean (#6240)
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Diffstat (limited to 'std/http/server.ts')
-rw-r--r-- | std/http/server.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/std/http/server.ts b/std/http/server.ts index 18bfc4731..d2736cb43 100644 --- a/std/http/server.ts +++ b/std/http/server.ts @@ -90,7 +90,9 @@ export class ServerRequest { try { // Eagerly close on error. this.conn.close(); - } catch {} + } catch { + // Pass + } err = e; } // Signal that this request has been processed and the next pipelined @@ -108,7 +110,9 @@ export class ServerRequest { // Consume unread body const body = this.body; const buf = new Uint8Array(1024); - while ((await body.read(buf)) !== null) {} + while ((await body.read(buf)) !== null) { + // Pass + } this.finalized = true; } } |