summaryrefslogtreecommitdiff
path: root/std/textproto/mod.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/textproto/mod.ts')
-rw-r--r--std/textproto/mod.ts4
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;