Merge pull request #3012 from OhBonsai/breaksoon

reduce useless cycles
This commit is contained in:
Marko Gaćeša 2021-07-06 17:32:42 +02:00 committed by GitHub
commit 47886d424a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -222,6 +222,7 @@ func (r *Runner) Run(ctx context.Context, id int64) error {
} }
if v.Name == m.Stage.Name { if v.Name == m.Stage.Name {
pipeline = v pipeline = v
break
} }
} }
if pipeline == nil { if pipeline == nil {