refactor: replace ioutil=>io; update linter (#1211)

This commit is contained in:
Christopher Angelo Phillips
2022-09-16 17:58:16 +00:00
committed by GitHub
parent 0a1cd25ba5
commit b48316742f
11 changed files with 14 additions and 22 deletions
@@ -4,7 +4,7 @@ import (
"bufio"
"encoding/json"
"fmt"
"io/ioutil"
"io"
"path/filepath"
"github.com/anchore/syft/internal"
@@ -169,7 +169,7 @@ func (c *PackageCataloger) fetchDirectURLData(resolver source.FileResolver, meta
}
defer internal.CloseAndLogError(directURLContents, directURLLocation.VirtualPath)
buffer, err := ioutil.ReadAll(directURLContents)
buffer, err := io.ReadAll(directURLContents)
if err != nil {
return nil, nil, err
}