Skip to content

Commit

Permalink
fix fallace status code
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincobain2000 committed Jan 22, 2024
1 parent 2c8be39 commit d8eb0d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/pkg/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (g *Github) VerifyGithubToken(token, orgName, repoName, commit string) erro
g.log.Error(err)
return err
}
if resp.StatusCode != http.StatusCreated {
if resp.StatusCode < 200 || resp.StatusCode > 299 {
err := fmt.Errorf("github auth response code is %d", resp.StatusCode)
g.log.Error(err)
return err
Expand Down

0 comments on commit d8eb0d6

Please sign in to comment.