mirror of
https://github.com/go-gitea/gitea.git
synced 2025-08-11 23:06:25 +00:00
remove code
This commit is contained in:
parent
1a08b870c9
commit
9bba25e72d
@ -267,16 +267,6 @@ func CancelPreviousJobsByJobConcurrency(ctx context.Context, job *ActionRunJob)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := job.LoadRun(ctx); err != nil {
|
|
||||||
return cancelledJobs, fmt.Errorf("load run: %w", err)
|
|
||||||
}
|
|
||||||
|
|
||||||
cancelledJobsByRun, err := CancelPreviousJobsByRunConcurrency(ctx, job.Run)
|
|
||||||
if err != nil {
|
|
||||||
return cancelledJobs, fmt.Errorf("cancel runs: %w", err)
|
|
||||||
}
|
|
||||||
cancelledJobs = append(cancelledJobs, cancelledJobsByRun...)
|
|
||||||
|
|
||||||
return cancelledJobs, nil
|
return cancelledJobs, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user