Skip to content

Commit

Permalink
fix(github): response can be nil (#2583)
Browse files Browse the repository at this point in the history
  • Loading branch information
rgmz committed Mar 16, 2024
1 parent b70b9b9 commit fd7e7e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/detectors/github/v1/github_old.go
Expand Up @@ -124,6 +124,7 @@ func (s Scanner) VerifyGithub(ctx context.Context, client *http.Client, token st
res, err := client.Do(req)
if err != nil {
requestErr = err
continue
}

if res.StatusCode >= 200 && res.StatusCode < 300 {
Expand Down

0 comments on commit fd7e7e6

Please sign in to comment.