From 3d1f568ddb3b8d35c66eb28485226b69d60724b7 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Fri, 21 Feb 2020 12:51:00 +0000 Subject: [PATCH] fix(fun/amsterdump): Fix call to os.Getenv Not sure how this broken version ended up committed ... --- fun/amsterdump/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fun/amsterdump/main.go b/fun/amsterdump/main.go index dda9995b7..77f7392f4 100644 --- a/fun/amsterdump/main.go +++ b/fun/amsterdump/main.go @@ -84,7 +84,7 @@ func main() { failOn(err, "could not deserialise listings:") ctx := context.Background() - apiKey = os.Getenv("MAPS_API_KEY", "") + apiKey := os.Getenv("MAPS_API_KEY") if apiKey == "" { log.Fatalln("API key must be supplied via MAPS_API_KEY") }