Skip to content

Commit

Permalink
update:fix golint
Browse files Browse the repository at this point in the history
  • Loading branch information
afocus committed Jun 20, 2023
1 parent 44debc7 commit 6886e3e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/http/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,16 @@ func (c *Client) Do(r *http.Request, out any) error {
}
var response *http.Response
if c.breaker != nil {
ret, err := c.breaker.Execute(func() (interface{}, error) {
return c.opt.Client.Do(r)
ret, err := c.breaker.Execute(func() (any, error) {
return c.opt.Client.Do(r) // nolint
})
if err != nil {
return err
}
response = ret.(*http.Response)
} else {
var err error
response, err = c.opt.Client.Do(r)
response, err = c.opt.Client.Do(r) // nolint
if err != nil {
return err
}
Expand Down

0 comments on commit 6886e3e

Please sign in to comment.