Skip to content

Commit 0cb6350

Browse files
committed
io/ioutil is deprecated
1 parent 0778b2f commit 0cb6350

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/commands/enrich.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"bufio"
55
"bytes"
66
"fmt"
7-
"io/ioutil"
7+
"io"
88
"log"
99
"os"
1010

@@ -23,7 +23,7 @@ func NewEnrichCommand(logger *log.Logger) *cobra.Command {
2323
var err error
2424
var b []byte
2525
if args[0] == "-" {
26-
b, err = ioutil.ReadAll(bufio.NewReader(os.Stdin))
26+
b, err = io.ReadAll(bufio.NewReader(os.Stdin))
2727
} else {
2828
b, err = os.ReadFile(args[0])
2929
}

0 commit comments

Comments
 (0)