diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2020-04-28 17:40:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-28 12:40:43 -0400 |
commit | 678313b17677e012ba9a07aeca58af1aafbf4e8c (patch) | |
tree | e48e25b165a7d6d566095442448f2e36fa09c561 /std/archive | |
parent | 47c2f034e95696a47770d60aec1362501e7f330d (diff) |
BREAKING: Remove Deno.EOF, use null instead (#4953)
Diffstat (limited to 'std/archive')
-rw-r--r-- | std/archive/tar.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/std/archive/tar.ts b/std/archive/tar.ts index 28c4bbd9a..225bcb769 100644 --- a/std/archive/tar.ts +++ b/std/archive/tar.ts @@ -41,12 +41,12 @@ class FileReader implements Deno.Reader { constructor(private filePath: string) {} - public async read(p: Uint8Array): Promise<number | Deno.EOF> { + public async read(p: Uint8Array): Promise<number | null> { if (!this.file) { this.file = await Deno.open(this.filePath, { read: true }); } const res = await Deno.read(this.file.rid, p); - if (res === Deno.EOF) { + if (res === null) { Deno.close(this.file.rid); this.file = undefined; } |