Skip to content

Commit d41aee8

Browse files
committed
34982#discussion_r2191579495
1 parent 204f7ca commit d41aee8

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

services/mailer/mail_workflow_run.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,8 @@ func sendActionsWorkflowRunStatusEmail(ctx context.Context, repo *repo_model.Rep
5757
sort.SliceStable(jobs, func(i, j int) bool {
5858
si := jobs[i].Status
5959
sj := jobs[j].Status
60-
if si.IsSuccess() {
61-
si = 99
62-
}
63-
if sj.IsSuccess() {
64-
sj = 99
60+
if si == sj || si.IsSuccess() {
61+
return false
6562
}
6663
return si < sj
6764
})

0 commit comments

Comments
 (0)