From 3a5fd7252690b0fa59eb597a4a8e9498ab4dfa7f Mon Sep 17 00:00:00 2001 From: Charlie Moog Date: Thu, 14 Jan 2021 22:05:17 -0600 Subject: [PATCH] fix: patch config-ssh warning msg --- internal/coderutil/env.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/coderutil/env.go b/internal/coderutil/env.go index 49de49fb..beefc3bc 100644 --- a/internal/coderutil/env.go +++ b/internal/coderutil/env.go @@ -36,7 +36,7 @@ type EnvWithPool struct { // EnvsWithPool performs the composition of each Environment with its associated ResourcePool. func EnvsWithPool(ctx context.Context, client *coder.Client, envs []coder.Environment) ([]EnvWithPool, error) { - pooledEnvs := make([]EnvWithPool, len(envs)) + pooledEnvs := make([]EnvWithPool, 0, len(envs)) pools, err := client.ResourcePools(ctx) if err != nil { return nil, err