Skip to content

Commit

Permalink
fix: rename config preCheck method
Browse files Browse the repository at this point in the history
  • Loading branch information
northes committed May 9, 2024
1 parent 4c8fcd4 commit 87c00ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func NewClient(key string) (*Client, error) {
WithAPIKey(key),
)

if err := cfg.PreCheck(); err != nil {
if err := cfg.preCheck(); err != nil {
return nil, err
}

Expand All @@ -28,7 +28,7 @@ func NewClientWithConfig(cfg *Config) (*Client, error) {
cfg = newConfigDefault()
}

if err := cfg.PreCheck(); err != nil {
if err := cfg.preCheck(); err != nil {
return nil, err
}

Expand Down

0 comments on commit 87c00ea

Please sign in to comment.