From 17663c12326dd1053f89a3bd741807f139973dae Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Tue, 5 Mar 2019 11:53:35 +1100 Subject: Add eslint for linting (denoland/deno_std#235) Original: https://github.com/denoland/deno_std/commit/c0390ade3de4d825423c9f0f5e1aa56ffd509942 --- examples/gist.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/gist.ts') diff --git a/examples/gist.ts b/examples/gist.ts index 8ce68a946..f64f69226 100755 --- a/examples/gist.ts +++ b/examples/gist.ts @@ -9,7 +9,7 @@ function pathBase(p: string): string { return parts[parts.length - 1]; } -async function main() { +async function main(): Promise { const token = env()["GIST_TOKEN"]; if (!token) { console.error("GIST_TOKEN environmental variable not set."); @@ -46,7 +46,7 @@ async function main() { headers: [ ["Content-Type", "application/json"], ["User-Agent", "Deno-Gist"], - ["Authorization", "token " + token] + ["Authorization", `token ${token}`] ], body }); -- cgit v1.2.3