Skip to content

Commit 49f16fc

Browse files
authored
feat: Handle nil options (#120)
1 parent 1370f5e commit 49f16fc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

client.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ func NewClient(apiKey string, options ...Option) *Client {
5050
c.log = createLogger()
5151

5252
for _, opt := range options {
53-
opt(c)
53+
if opt != nil {
54+
opt(c)
55+
}
5456
}
5557
c.client.SetLogger(c.log)
5658

0 commit comments

Comments
 (0)