Skip to content

Commit

Permalink
lint: remove tautological condition.
Browse files Browse the repository at this point in the history
  • Loading branch information
ghosind committed Jul 22, 2024
1 parent c3424bf commit 267b8ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion request.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func (cli *Client) sendRequest(req *http.Request, opt RequestOptions) (*http.Res
attempt++

resp, err := httpClient.Do(req)
if err == nil || (err != nil && attempt >= maxAttempt) {
if err == nil || attempt >= maxAttempt {
return resp, err
} else if errors.Is(err, context.Canceled) || errors.Is(err, context.DeadlineExceeded) {
return resp, err
Expand Down

0 comments on commit 267b8ff

Please sign in to comment.