mirror of
https://github.com/thegeeklab/drone-yaml.git
synced 2024-11-21 17:40:39 +00:00
Merge pull request #37 from ferhatelmas/drop-for
drop for loop in favor of append
This commit is contained in:
commit
65ef1df51d
@ -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…
Reference in New Issue
Block a user