diff --git a/client.go b/client.go index a8bf183..b377aee 100644 --- a/client.go +++ b/client.go @@ -50,7 +50,9 @@ func NewClient(apiKey string, options ...Option) *Client { c.log = createLogger() for _, opt := range options { - opt(c) + if opt != nil { + opt(c) + } } c.client.SetLogger(c.log)