From 60a81b808c24f236ee603cbc310fae29bd2981e5 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Tue, 3 Dec 2019 23:55:08 +0100 Subject: 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. --- submitqueue/runner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } } -- cgit 1.4.1