Skip to content

Commit 1a2e850

Browse files
committed
lint
1 parent 1f8e3b6 commit 1a2e850

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

models/actions/run.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,9 @@ func CancelJobs(ctx context.Context, jobs []*ActionRunJob) ([]*ActionRunJob, err
315315
}
316316

317317
for runID, job := range runsToUpdate {
318-
UpdateRunStatus(ctx, job.RepoID, runID)
318+
if err := UpdateRunStatus(ctx, job.RepoID, runID); err != nil {
319+
return cancelledJobs, err
320+
}
319321
}
320322

321323
// Return nil to indicate successful cancellation of all running and waiting jobs.

0 commit comments

Comments
 (0)