Skip to content

Commit

Permalink
Ensure response middleware executed when internal middleware returns …
Browse files Browse the repository at this point in the history
…error
  • Loading branch information
imroc committed Feb 24, 2023
1 parent 868660c commit 9e2d4b1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -1385,7 +1385,6 @@ func (c *Client) roundTrip(r *Request) (resp *Response, err error) {
for _, f := range r.client.afterResponse {
if e := f(r.client, resp); e != nil {
resp.Err = e
return
}
}
return
Expand Down

0 comments on commit 9e2d4b1

Please sign in to comment.