diff options
author | Maximilien Mellen <maxmellen0@gmail.com> | 2020-02-19 21:36:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-19 15:36:18 -0500 |
commit | 90125566bbaed8b5c6e55ca8dbc432e3433fb73c (patch) | |
tree | bf798a408b26264641260395ce8cfc9d4bb37637 /std/textproto/mod.ts | |
parent | 852823fa505d75d61e70e1330bbf366aa248e650 (diff) |
Enable TS strict mode by default (#3899)
Fixes #3324
Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
Diffstat (limited to 'std/textproto/mod.ts')
-rw-r--r-- | std/textproto/mod.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/std/textproto/mod.ts b/std/textproto/mod.ts index 465753823..dd7d3ede9 100644 --- a/std/textproto/mod.ts +++ b/std/textproto/mod.ts @@ -67,7 +67,7 @@ export class TextProtoReader { */ async readMIMEHeader(): Promise<Headers | Deno.EOF> { const m = new Headers(); - let line: Uint8Array; + let line: Uint8Array | undefined; // The first line cannot start with a leading space. let buf = await this.r.peek(1); @@ -135,7 +135,7 @@ export class TextProtoReader { async readLineSlice(): Promise<Uint8Array | Deno.EOF> { // this.closeDot(); - let line: Uint8Array; + let line: Uint8Array | undefined; while (true) { const r = await this.r.readLine(); if (r === Deno.EOF) return Deno.EOF; |