From 2390dc31e01eb8614cb7c76ff77ca6b5005f2291 Mon Sep 17 00:00:00 2001 From: Miguel Mota Date: Tue, 23 Apr 2019 00:54:35 -0700 Subject: [PATCH] make pro api key optional --- pro/v1/coinmarketcap.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pro/v1/coinmarketcap.go b/pro/v1/coinmarketcap.go index 8b53181..bcdbf1a 100644 --- a/pro/v1/coinmarketcap.go +++ b/pro/v1/coinmarketcap.go @@ -5,7 +5,6 @@ import ( "encoding/json" "errors" "fmt" - "log" "os" "strings" ) @@ -248,10 +247,6 @@ func NewClient(cfg *Config) *Client { cfg.ProAPIKey = os.Getenv("CMC_PRO_API_KEY") } - if cfg.ProAPIKey == "" { - log.Fatal("Pro API Key is required") - } - c := &Client{ proAPIKey: cfg.ProAPIKey, }