mirror of
https://github.com/go-gitea/gitea.git
synced 2025-12-10 19:44:33 +01:00
lint
This commit is contained in:
parent
1f8e3b6fb8
commit
1a2e85020a
@ -315,7 +315,9 @@ func CancelJobs(ctx context.Context, jobs []*ActionRunJob) ([]*ActionRunJob, err
|
||||
}
|
||||
|
||||
for runID, job := range runsToUpdate {
|
||||
UpdateRunStatus(ctx, job.RepoID, runID)
|
||||
if err := UpdateRunStatus(ctx, job.RepoID, runID); err != nil {
|
||||
return cancelledJobs, err
|
||||
}
|
||||
}
|
||||
|
||||
// Return nil to indicate successful cancellation of all running and waiting jobs.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user