Skip to content

Commit 21dca3e

Browse files
committed
Modernize code
1 parent 245146a commit 21dca3e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

output.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ package terminal
2222
import (
2323
"fmt"
2424
"io"
25-
"io/ioutil"
2625
"os"
2726
)
2827

@@ -108,7 +107,7 @@ func NewOutput(w io.Writer, formatter *Formatter) *Output {
108107
}
109108

110109
func (o Output) IsQuiet() bool {
111-
return o.writer == ioutil.Discard
110+
return o.writer == io.Discard
112111
}
113112

114113
func (o Output) Fd() uintptr {
@@ -230,7 +229,7 @@ func setupLogLevelStyle(formatter *Formatter) {
230229
func init() {
231230
DefaultStdout = RemapOutput(defaultOutputs())
232231
DiscardedOutput = &Output{
233-
ioutil.Discard,
232+
io.Discard,
234233
NewFormatter(),
235234
}
236235
}

0 commit comments

Comments
 (0)