Skip to content

Commit

Permalink
feat: Handle nil options (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
khvn26 authored Mar 12, 2024
1 parent 1370f5e commit 49f16fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 49f16fc

Please sign in to comment.