summaryrefslogtreecommitdiff
path: root/cli/tests/cat.ts
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2020-06-12 20:23:38 +0100
committerGitHub <noreply@github.com>2020-06-12 15:23:38 -0400
commit1fff6f55c3ba98a10018c6d374795e612061e9b6 (patch)
tree12074b6d44736b11513d857e437f9e30a6bf65a4 /cli/tests/cat.ts
parent26bf56afdaf16634ffbaa23684faf3a44cc10f62 (diff)
refactor: Don't destructure the Deno namespace (#6268)
Diffstat (limited to 'cli/tests/cat.ts')
-rw-r--r--cli/tests/cat.ts10
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);
}
}