Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Nmishin committed Nov 23, 2024
1 parent 7826ed5 commit ae48d82
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,13 @@ func checkRateLimit(resp *http.Response) error {
if rateLimitRemaining == "0" {
return apimsg.ErrRateLimit
}

return nil
}

func downloadWithHeaders(ctx context.Context, url string, modifyRequest func(*http.Request)) (*http.Response, error) {
client := &http.Client{}
req, err := http.NewRequestWithContext(ctx, "GET", url, nil)
req, err := http.NewRequestWithContext(ctx, http.MethodGet, url, nil)
if err != nil {
return nil, err
}
Expand All @@ -158,6 +159,7 @@ func downloadWithHeaders(ctx context.Context, url string, modifyRequest func(*ht
if err != nil {
return nil, err
}

return resp, nil
}

Expand Down

0 comments on commit ae48d82

Please sign in to comment.