diff options
Diffstat (limited to 'examples/gist.ts')
-rwxr-xr-x | examples/gist.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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<void> { 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 }); |