summaryrefslogtreecommitdiff
path: root/std/examples/gist.ts
diff options
context:
space:
mode:
authorValentin Anger <syrupthinker@gryphno.de>2020-04-29 20:48:19 +0200
committerGitHub <noreply@github.com>2020-04-29 14:48:19 -0400
commit721a4ad59d4a8bdd8470d6b98839137f14c84ba9 (patch)
treea8a7f7810a92c366224564b62b5fe7acab717466 /std/examples/gist.ts
parent17cf2ecdacea2254c06374866c4e7e83e282226d (diff)
BREAKING: Map-like interface for Deno.env (#4942)
Diffstat (limited to 'std/examples/gist.ts')
-rwxr-xr-xstd/examples/gist.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/std/examples/gist.ts b/std/examples/gist.ts
index c41b9b98e..fbe4384e1 100755
--- a/std/examples/gist.ts
+++ b/std/examples/gist.ts
@@ -7,7 +7,7 @@ function pathBase(p: string): string {
return parts[parts.length - 1];
}
-const token = Deno.env()["GIST_TOKEN"];
+const token = Deno.env.get("GIST_TOKEN");
if (!token) {
console.error("GIST_TOKEN environmental variable not set.");
console.error("Get a token here: https://github.com/settings/tokens");