submitqueue.runner.Trigger: return instead of break

We're inside two loops, but when havint to sleep, we want to exit the whole trigger function.
This commit is contained in:
Florian Klink 2019-12-03 23:55:08 +01:00
parent ece32d3d7c
commit 60a81b808c

View file

@ -142,7 +142,7 @@ func (r *Runner) Trigger(fetchOnly bool) error {
if c.Verified == 0 {
l.WithField("pendingChangeset", c).Warnf("still waiting for CI feedback in wipSerie, going back to sleep.")
// break the loop, take a look at it at the next trigger.
break
return nil
}
}