drop for loop in favor of append

pull/37/head
ferhat elmas 5 years ago
parent 68319d032e
commit d3271a5de6

@ -20,9 +20,7 @@ import "github.com/drone/drone-runtime/engine"
// of global registry credentials to the container.
func WithAuths(auths []*engine.DockerAuth) func(*engine.Spec) {
return func(spec *engine.Spec) {
for _, auth := range auths {
spec.Docker.Auths = append(spec.Docker.Auths, auth)
}
spec.Docker.Auths = append(spec.Docker.Auths, auths...)
}
}

Loading…
Cancel
Save