Skip to content

Commit 4969110

Browse files
fix lint issue
1 parent 784a80f commit 4969110

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/wrappers/github-http.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ func get(client *http.Client, url string, target interface{}, queryParams map[st
250250
if err != nil {
251251
return nil, err
252252
}
253-
resp, err = handleRateLimit(resp, client, req, url, token, tokenFormat, queryParams)
253+
resp, err = handleRateLimit(resp, client, req, url, token, queryParams)
254254
if err != nil {
255255
return nil, err
256256
}
@@ -283,7 +283,7 @@ func get(client *http.Client, url string, target interface{}, queryParams map[st
283283
return resp, nil
284284
}
285285

286-
func handleRateLimit(resp *http.Response, client *http.Client, req *http.Request, url, token, authFormat string, queryParams map[string]string) (*http.Response, error) {
286+
func handleRateLimit(resp *http.Response, client *http.Client, req *http.Request, url, token string, queryParams map[string]string) (*http.Response, error) {
287287
if resp.StatusCode == http.StatusForbidden {
288288
remaining := resp.Header.Get("X-RateLimit-Remaining")
289289
reset := resp.Header.Get("X-RateLimit-Reset")
@@ -300,5 +300,5 @@ func handleRateLimit(resp *http.Response, client *http.Client, req *http.Request
300300
}
301301
}
302302
}
303-
return resp, nil //Not rate limited
303+
return resp, nil // Not rate limited
304304
}

0 commit comments

Comments
 (0)