From 90125566bbaed8b5c6e55ca8dbc432e3433fb73c Mon Sep 17 00:00:00 2001 From: Maximilien Mellen Date: Wed, 19 Feb 2020 21:36:18 +0100 Subject: Enable TS strict mode by default (#3899) Fixes #3324 Co-authored-by: Kitson Kelly --- std/textproto/mod.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'std/textproto/mod.ts') 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 { 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 { // this.closeDot(); - let line: Uint8Array; + let line: Uint8Array | undefined; while (true) { const r = await this.r.readLine(); if (r === Deno.EOF) return Deno.EOF; -- cgit v1.2.3