Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.

Commit

Permalink
make pro api key optional
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelmota committed Apr 23, 2019
1 parent a5c7d82 commit 2390dc3
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pro/v1/coinmarketcap.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"encoding/json"
"errors"
"fmt"
"log"
"os"
"strings"
)
Expand Down Expand Up @@ -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,
}
Expand Down

0 comments on commit 2390dc3

Please sign in to comment.