summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2019-10-06 01:02:34 +0900
committerRyan Dahl <ry@tinyclouds.org>2019-10-05 12:02:34 -0400
commit96fe2d10a4da0521b7cd72d90fd42121f9311978 (patch)
treecb4d5ecafa55a3a522cf0ad9d742fb6a1e1f2283 /examples
parent2f90225c89926932a34eb40758e2af0d1742e1f8 (diff)
Update eslint and @typescript-eslint (denoland/deno_std#621)
Original: https://github.com/denoland/deno_std/commit/c3fe858f98565edbe8faeb3cf2e5b873304f4f6e
Diffstat (limited to 'examples')
-rw-r--r--examples/cat.ts4
-rwxr-xr-xexamples/gist.ts4
2 files changed, 4 insertions, 4 deletions
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<void> {
- 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();
}
diff --git a/examples/gist.ts b/examples/gist.ts
index 7c52662b4..890d85099 100755
--- a/examples/gist.ts
+++ b/examples/gist.ts
@@ -53,11 +53,11 @@ async function main(): Promise<void> {
});
if (res.ok) {
- let resObj = await res.json();
+ const resObj = await res.json();
console.log("Success");
console.log(resObj["html_url"]);
} else {
- let err = await res.text();
+ const err = await res.text();
console.error("Failure to POST", err);
}
}