Skip to content

Commit

Permalink
Merge pull request #61 from dlorenc/nil
Browse files Browse the repository at this point in the history
I've seen this test crash a couple times with a "nil" result.
  • Loading branch information
kimsterv authored Nov 12, 2020
2 parents 45286f1 + 1a1f70c commit 6fc2ee6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checks/ci_tests.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func GithubCheckRuns(c checker.Checker) checker.CheckResult {
}
totalMerged++
crs, _, err := c.Client.Checks.ListCheckRunsForRef(c.Ctx, c.Owner, c.Repo, pr.GetHead().GetSHA(), &github.ListCheckRunsOptions{})
if err != nil {
if err != nil || crs == nil {
return checker.RetryResult(err)
}
for _, cr := range crs.CheckRuns {
Expand Down

0 comments on commit 6fc2ee6

Please sign in to comment.