From 721a4ad59d4a8bdd8470d6b98839137f14c84ba9 Mon Sep 17 00:00:00 2001 From: Valentin Anger Date: Wed, 29 Apr 2020 20:48:19 +0200 Subject: BREAKING: Map-like interface for Deno.env (#4942) --- std/examples/gist.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'std/examples/gist.ts') 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"); -- cgit v1.2.3