Skip to content

Commit

Permalink
Reverting change to client.go
Browse files Browse the repository at this point in the history
  • Loading branch information
rajkong committed Jan 4, 2022
1 parent 01fb127 commit 8d30706
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion konnect/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ type ClientOpts struct {
// NewClient returns a Client which talks to Konnect's API.
func NewClient(httpClient *http.Client, opts ClientOpts) (*Client, error) {
if httpClient == nil {
return nil, fmt.Errorf("nil httpClient passed")
httpClient = http.DefaultClient
}
client := new(Client)
client.client = httpClient
Expand Down

0 comments on commit 8d30706

Please sign in to comment.