Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rafiramadhana committed Nov 13, 2023
1 parent 27e6a34 commit 539b74e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion request.go
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,9 @@ func (r *Request) WithRetryPolicy(policy RetryPolicy) *Request {
// req.WithRetryPolicyFunc(func(res *http.Response, err error) bool {
// return resp.StatusCode == http.StatusTeapot
// })
func (r *Request) WithRetryPolicyFunc(fn func(res *http.Response, err error) bool) *Request {
func (r *Request) WithRetryPolicyFunc(
fn func(res *http.Response, err error) bool,
) *Request {
opChain := r.chain.enter("WithRetryPolicyFunc()")
defer opChain.leave()

Expand Down

0 comments on commit 539b74e

Please sign in to comment.