Skip to content

Commit

Permalink
fix: ioutil -> io
Browse files Browse the repository at this point in the history
Signed-off-by: nscuro <nscuro@protonmail.com>
  • Loading branch information
nscuro committed Jun 4, 2024
1 parent c52e698 commit 9166e10
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import (
"encoding/json"
"encoding/xml"
"io"
"io/ioutil"
)

type BOMDecoder interface {
Expand All @@ -41,7 +40,7 @@ type jsonBOMDecoder struct {

// Decode implements the BOMDecoder interface.
func (j jsonBOMDecoder) Decode(bom *BOM) error {
bytes, err := ioutil.ReadAll(j.reader)
bytes, err := io.ReadAll(j.reader)
if err != nil {
return err
}
Expand Down

0 comments on commit 9166e10

Please sign in to comment.