Skip to content

Commit da07dce

Browse files
beccccabooCopilot
andauthored
use http.StatusOK
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent f90c545 commit da07dce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/github/repositories.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ func ListRepositoryContributors(getClient GetClientFn, t translations.Translatio
236236
}
237237
defer func() { _ = resp.Body.Close() }()
238238

239-
if resp.StatusCode != 200 {
239+
if resp.StatusCode != http.StatusOK {
240240
body, err := io.ReadAll(resp.Body)
241241
if err != nil {
242242
return nil, fmt.Errorf("failed to read response body: %w", err)

0 commit comments

Comments
 (0)