Skip to content

Commit f06105a

Browse files
committed
strings.Builder
1 parent bf101d3 commit f06105a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agent/agentcontainers/containers_dockercli.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ func wrapDockerExec(containerName, userName, cmd string, args ...string) (string
228228
// We also want to differentiate between a command running successfully with
229229
// output to stderr and a non-zero exit code.
230230
func run(ctx context.Context, execer agentexec.Execer, cmd string, args ...string) (stdout, stderr string, err error) {
231-
var stdoutBuf, stderrBuf bytes.Buffer
231+
var stdoutBuf, stderrBuf strings.Builder
232232
execCmd := execer.CommandContext(ctx, cmd, args...)
233233
execCmd.Stdout = &stdoutBuf
234234
execCmd.Stderr = &stderrBuf

0 commit comments

Comments
 (0)