Skip to content

Commit f4099f3

Browse files
committed
Fix WithCustomStdout and WithCustomStderr functions which had overwritten the stdout/stderr writers
1 parent b7d83e7 commit f4099f3

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

command.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,6 @@ func WithCustomStdout(writers ...io.Writer) func(c *Command) {
8787
return func(c *Command) {
8888
writers = append(writers, &c.stdout, &c.combined)
8989
c.StdoutWriter = NewMultiplexedWriter(writers...)
90-
91-
c.StderrWriter = NewMultiplexedWriter(&c.stderr, &c.combined)
9290
}
9391
}
9492

@@ -97,8 +95,6 @@ func WithCustomStderr(writers ...io.Writer) func(c *Command) {
9795
return func(c *Command) {
9896
writers = append(writers, &c.stderr, &c.combined)
9997
c.StderrWriter = NewMultiplexedWriter(writers...)
100-
101-
c.StdoutWriter = NewMultiplexedWriter(&c.stdout, &c.combined)
10298
}
10399
}
104100

0 commit comments

Comments
 (0)