Skip to content

Commit

Permalink
Fix lint uint
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardovivanco committed May 9, 2024
1 parent 93970ab commit 2fe01b2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions http_client_wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,7 @@ type HTTPClientWrapperOption func(*HTTPClientWrapperOptions)

func WithRetry(retry uint) HTTPClientWrapperOption {
return func(opts *HTTPClientWrapperOptions) {
if retry >= 0 {
opts.Retry = retry
} else {
opts.Retry = defaultHTTPClientWrapperOptions.Retry
}
opts.Retry = retry
}
}

Expand Down

0 comments on commit 2fe01b2

Please sign in to comment.