aboutsummaryrefslogtreecommitdiff
path: root/pkg/env
diff options
context:
space:
mode:
authorValentin Rothberg <vrothberg@redhat.com>2022-03-21 15:07:06 +0100
committerValentin Rothberg <vrothberg@redhat.com>2022-03-22 13:04:35 +0100
commit68b94338bac2f3a4ee18f959cc2b214bb22d7fcf (patch)
tree59fbd767bb9b3953778e7c8291aa2444c3a4847c /pkg/env
parent0f12b6fe55f6b5ce70d8c388ec2df35db9feffbb (diff)
downloadpodman-68b94338bac2f3a4ee18f959cc2b214bb22d7fcf.tar.gz
podman-68b94338bac2f3a4ee18f959cc2b214bb22d7fcf.tar.bz2
podman-68b94338bac2f3a4ee18f959cc2b214bb22d7fcf.zip
linter: enable makezero
Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
Diffstat (limited to 'pkg/env')
-rw-r--r--pkg/env/env.go2
1 files changed, 1 insertions, 1 deletions
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 {