From d3271a5de624a0f4ec84a40b8b6a3407cbfe74de Mon Sep 17 00:00:00 2001 From: ferhat elmas Date: Sat, 13 Apr 2019 16:45:41 +0200 Subject: [PATCH] drop for loop in favor of append --- yaml/compiler/transform/auths.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/yaml/compiler/transform/auths.go b/yaml/compiler/transform/auths.go index 7399500..644ca83 100644 --- a/yaml/compiler/transform/auths.go +++ b/yaml/compiler/transform/auths.go @@ -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...) } }