diff --git a/obs-staging-bot/main.go b/obs-staging-bot/main.go index 5bd8eda..e23f811 100644 --- a/obs-staging-bot/main.go +++ b/obs-staging-bot/main.go @@ -132,8 +132,8 @@ func processBuildStatus(h *common.RequestHandler, project, refProject *common.Bu slices.SortFunc(refProject.Result, BuildResultSorter) - j := 0 for i := 0; i < len(project.Result); i++ { + j := 0 for ; j < len(refProject.Result); j++ { if project.Result[i].Repository != refProject.Result[j].Repository || project.Result[i].Arch != refProject.Result[j].Arch {