diff options
author | Florian Klink <flokli@flokli.de> | 2019-12-03T22·55+0100 |
---|---|---|
committer | Florian Klink <flokli@flokli.de> | 2019-12-03T22·55+0100 |
commit | 60a81b808c24f236ee603cbc310fae29bd2981e5 (patch) | |
tree | 3bca037d12d7a8c5e8c25e2bb7a00402df14bf92 | |
parent | ece32d3d7cd0c45f7003c081adc9ef57b805a1ec (diff) |
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.
-rw-r--r-- | submitqueue/runner.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/submitqueue/runner.go b/submitqueue/runner.go index 0a7af6e35c11..2b244e264891 100644 --- a/submitqueue/runner.go +++ b/submitqueue/runner.go @@ -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 } } |