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
@@ -3,7 +3,6 @@ package swift
import (
"fmt"
"io"
"io/ioutil"
"strings"
"gopkg.in/yaml.v3"
@@ -18,7 +17,7 @@ var _ common.ParserFn = parsePodfileLock
// parsePodfileLock is a parser function for Podfile.lock contents, returning all cocoapods pods discovered.
func parsePodfileLock(_ string, reader io.Reader) ([]*pkg.Package, []artifact.Relationship, error) {
bytes, err := ioutil.ReadAll(reader)
bytes, err := io.ReadAll(reader)
if err != nil {
return nil, nil, fmt.Errorf("unable to read file: %w", err)
}