Skip to content

Commit 44280ae

Browse files
committed
Fix review comment for env make allocation
1 parent 33e57be commit 44280ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

e2e/relay/helper_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ func (c *Command) Start(ctx context.Context) {
209209

210210
slog.Info("Running command as a sub-process", "executable", exeFile, "args", c.Args)
211211
c.cmd = exec.Command(exeFile, c.Args...)
212-
c.cmd.Env = make([]string, len(env))
212+
c.cmd.Env = make([]string, 0, len(env))
213213
for k, v := range env {
214214
c.cmd.Env = append(c.cmd.Env, fmt.Sprintf("%s=%s", k, v))
215215
}

0 commit comments

Comments
 (0)