diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2019-10-06 01:02:34 +0900 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-10-05 12:02:34 -0400 |
commit | 96fe2d10a4da0521b7cd72d90fd42121f9311978 (patch) | |
tree | cb4d5ecafa55a3a522cf0ad9d742fb6a1e1f2283 /textproto/mod.ts | |
parent | 2f90225c89926932a34eb40758e2af0d1742e1f8 (diff) |
Update eslint and @typescript-eslint (denoland/deno_std#621)
Original: https://github.com/denoland/deno_std/commit/c3fe858f98565edbe8faeb3cf2e5b873304f4f6e
Diffstat (limited to 'textproto/mod.ts')
-rw-r--r-- | textproto/mod.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/textproto/mod.ts b/textproto/mod.ts index 941525e95..22153d17c 100644 --- a/textproto/mod.ts +++ b/textproto/mod.ts @@ -66,7 +66,7 @@ export class TextProtoReader { * } */ async readMIMEHeader(): Promise<Headers | Deno.EOF> { - let m = new Headers(); + const m = new Headers(); let line: Uint8Array; // The first line cannot start with a leading space. @@ -87,7 +87,7 @@ export class TextProtoReader { } while (true) { - let kv = await this.readLineSlice(); // readContinuedLineSlice + const kv = await this.readLineSlice(); // readContinuedLineSlice if (kv === Deno.EOF) throw new UnexpectedEOFError(); if (kv.byteLength === 0) return m; @@ -104,7 +104,7 @@ export class TextProtoReader { } //let key = canonicalMIMEHeaderKey(kv.subarray(0, endKey)); - let key = str(kv.subarray(0, endKey)); + const key = str(kv.subarray(0, endKey)); // As per RFC 7230 field-name is a token, // tokens consist of one or more chars. @@ -123,7 +123,7 @@ export class TextProtoReader { ) { i++; } - let value = str(kv.subarray(i)); + const value = str(kv.subarray(i)); // In case of invalid header we swallow the error // example: "Audio Mode" => invalid due to space in the key |