diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2020-06-12 20:23:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-12 15:23:38 -0400 |
commit | 1fff6f55c3ba98a10018c6d374795e612061e9b6 (patch) | |
tree | 12074b6d44736b11513d857e437f9e30a6bf65a4 /cli/tests/cat.ts | |
parent | 26bf56afdaf16634ffbaa23684faf3a44cc10f62 (diff) |
refactor: Don't destructure the Deno namespace (#6268)
Diffstat (limited to 'cli/tests/cat.ts')
-rw-r--r-- | cli/tests/cat.ts | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/cli/tests/cat.ts b/cli/tests/cat.ts index bd6b5af06..a5b38fccd 100644 --- a/cli/tests/cat.ts +++ b/cli/tests/cat.ts @@ -1,10 +1,8 @@ -const { stdout, open, copy, args } = Deno; - async function main(): Promise<void> { - for (let i = 1; i < args.length; i++) { - const filename = args[i]; - const file = await open(filename); - await copy(file, stdout); + for (let i = 1; i < Deno.args.length; i++) { + const filename = Deno.args[i]; + const file = await Deno.open(filename); + await Deno.copy(file, Deno.stdout); } } |