Skip to content

Commit

Permalink
Merge pull request #24 from fnaoto/2022-11-17
Browse files Browse the repository at this point in the history
Fix check condition for pointer.
  • Loading branch information
fnaoto authored Nov 17, 2022
2 parents 0241bb4 + 082c2bd commit 3f6d22f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func NewClient(conf ClientConfig) (*Client, error) {
if len(conf.ApiKey) == 0 {
return nil, errors.New("missing apiKey")
}
if len(*conf.ApiEndpoint) == 0 {
if conf.ApiEndpoint == nil {
endpoint := DGApiEndpoint
conf.ApiEndpoint = &endpoint
}
Expand Down

0 comments on commit 3f6d22f

Please sign in to comment.