From 68b94338bac2f3a4ee18f959cc2b214bb22d7fcf Mon Sep 17 00:00:00 2001 From: Valentin Rothberg Date: Mon, 21 Mar 2022 15:07:06 +0100 Subject: linter: enable makezero Signed-off-by: Valentin Rothberg --- pkg/env/env.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/env') diff --git a/pkg/env/env.go b/pkg/env/env.go index ecd2d62a5..5989d0da5 100644 --- a/pkg/env/env.go +++ b/pkg/env/env.go @@ -26,7 +26,7 @@ func DefaultEnvVariables() map[string]string { // Slice transforms the specified map of environment variables into a // slice. If a value is non-empty, the key and value are joined with '='. func Slice(m map[string]string) []string { - env := make([]string, len(m)) + env := make([]string, 0, len(m)) for k, v := range m { var s string if len(v) > 0 { -- cgit v1.2.3-54-g00ecf