Fix for range over int constant
This commit is contained in:
parent
c501efe6b6
commit
3b9829b208
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ func DoRequestWithRetry(client *http.Client, req *http.Request) (*http.Response,
|
||||||
var resp *http.Response
|
var resp *http.Response
|
||||||
var err error
|
var err error
|
||||||
|
|
||||||
for i := range maxRetries {
|
for i := 0; i < maxRetries; i++ {
|
||||||
if i > 0 && resp != nil {
|
if i > 0 && resp != nil {
|
||||||
resp.Body.Close()
|
resp.Body.Close()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue