This commit is contained in:
Adam Majer 2024-08-16 14:29:52 +02:00
parent 6d8419c7db
commit 16e3d7495f

View File

@ -132,6 +132,7 @@ func processBuildStatus(h *common.RequestHandler, project, refProject *common.Bu
slices.SortFunc(refProject.Result, BuildResultSorter) slices.SortFunc(refProject.Result, BuildResultSorter)
done:
for i := 0; i < len(project.Result); i++ { for i := 0; i < len(project.Result); i++ {
j := 0 j := 0
for ; j < len(refProject.Result); j++ { for ; j < len(refProject.Result); j++ {
@ -144,6 +145,9 @@ func processBuildStatus(h *common.RequestHandler, project, refProject *common.Bu
res := processRepoBuildStatus(h, project.Result[i].Status, refProject.Result[j].Status) res := processRepoBuildStatus(h, project.Result[i].Status, refProject.Result[j].Status)
switch res { switch res {
case BuildStatusSummarySuccess: case BuildStatusSummarySuccess:
if i-1 == len(project.Result) {
break done
}
break break
default: default:
return res return res