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:
parent
ece32d3d7c
commit
60a81b808c
1 changed files with 1 additions and 1 deletions
|
@ -142,7 +142,7 @@ func (r *Runner) Trigger(fetchOnly bool) error {
|
||||||
if c.Verified == 0 {
|
if c.Verified == 0 {
|
||||||
l.WithField("pendingChangeset", c).Warnf("still waiting for CI feedback in wipSerie, going back to sleep.")
|
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 the loop, take a look at it at the next trigger.
|
||||||
break
|
return nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue