Skip to content

Commit

Permalink
Merge pull request #114 from articulate/fix/lint-updates
Browse files Browse the repository at this point in the history
style(golangci-lint): ignore perfsprint check for consistency
  • Loading branch information
dholmes committed Mar 20, 2024
2 parents 352a934 + ced82d6 commit a83871b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ linters:
- sqlclosecheck
- maligned
- wrapcheck
- perfsprint

issues:
exclude-rules:
Expand Down
2 changes: 1 addition & 1 deletion pkg/ohdear/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func NewClient(baseURL, token string) *Client {
client.SetRetryCount(3)
client.SetRetryWaitTime(5 * time.Second)
client.SetRetryMaxWaitTime(20 * time.Second)
client.AddRetryCondition(func(r *resty.Response, err error) bool {
client.AddRetryCondition(func(r *resty.Response, _ error) bool {
return r.StatusCode() == http.StatusTooManyRequests
})

Expand Down

0 comments on commit a83871b

Please sign in to comment.