Skip to content

Commit

Permalink
Merge pull request #2 from SeanMcP/fix/remove-duplicate-variable
Browse files Browse the repository at this point in the history
Rename client variable to avoid collision
  • Loading branch information
cochran-at-niche authored Sep 4, 2019
2 parents 2975381 + 4459dc2 commit e0c8585
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@ func SetURL(url string) Option {
// key, which is shared between your site and reCAPTCHA. Additional
// configuration options may also be provided (e.g. SetHTTPClient, SetURL).
func NewClient(secret string, opts ...Option) Client {
client := &client{
c := &client{
secret: secret,
url: DefaultURL,
httpClient: http.DefaultClient,
}
for _, opt := range opts {
opt(client)
opt(c)
}
return client
return c
}

// Fetch makes a request to the reCAPTCHA verification endpoint using the
Expand Down

0 comments on commit e0c8585

Please sign in to comment.