From 96fe2d10a4da0521b7cd72d90fd42121f9311978 Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Sun, 6 Oct 2019 01:02:34 +0900 Subject: Update eslint and @typescript-eslint (denoland/deno_std#621) Original: https://github.com/denoland/deno_std/commit/c3fe858f98565edbe8faeb3cf2e5b873304f4f6e --- examples/cat.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/cat.ts') diff --git a/examples/cat.ts b/examples/cat.ts index ba8b42bdf..3626e3c29 100644 --- a/examples/cat.ts +++ b/examples/cat.ts @@ -1,7 +1,7 @@ // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. async function cat(filenames: string[]): Promise { - for (let filename of filenames) { - let file = await Deno.open(filename); + for (const filename of filenames) { + const file = await Deno.open(filename); await Deno.copy(Deno.stdout, file); file.close(); } -- cgit v1.2.3