Skip to content

Commit

Permalink
Prevent issues when there are no results
Browse files Browse the repository at this point in the history
Signed-off-by: GitHub <[email protected]>
  • Loading branch information
rajbos authored Jul 30, 2023
1 parent 3823362 commit db50b38
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,9 @@ func main() {
log.Fatal(err)
}

workflowRuns = append(workflowRuns, runs.WorkflowRuns...)
if runs != nil {
workflowRuns = append(workflowRuns, runs.WorkflowRuns...)
}

if len(workflowRuns) == 0 {
break
Expand Down

0 comments on commit db50b38

Please sign in to comment.