Skip to content

Commit db50b38

Browse files
authored
Prevent issues when there are no results
Signed-off-by: GitHub <[email protected]>
1 parent 3823362 commit db50b38

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

main.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,9 @@ func main() {
202202
log.Fatal(err)
203203
}
204204

205-
workflowRuns = append(workflowRuns, runs.WorkflowRuns...)
205+
if runs != nil {
206+
workflowRuns = append(workflowRuns, runs.WorkflowRuns...)
207+
}
206208

207209
if len(workflowRuns) == 0 {
208210
break

0 commit comments

Comments
 (0)