Improve Retry Logic to Only Retry on Server-Side HTTP Errors #2817
Annotations
7 errors
Run lint action:
pkg/osv/osv.go#L322
"429" can be replaced by http.StatusTooManyRequests (usestdlibvars)
|
Run lint action:
pkg/osv/osv_test.go#L47
The copy of the 'for' variable "tt" can be deleted (Go 1.22+) (copyloopvar)
|
Run lint action:
pkg/osv/osv_test.go#L54
unused-parameter: parameter 'r' seems to be unused, consider removing or renaming it as _ (revive)
|
Run lint action:
pkg/osv/osv_test.go#L63
Error return value of `w.Write` is not checked (errcheck)
|
Run lint action:
pkg/osv/osv_test.go#L70
(*net/http.Client).Get must not be called (noctx)
|
Run lint action:
pkg/osv/osv_test.go#L84
return with no blank line before (nlreturn)
|
Run lint action
issues found
|
Loading