Skip to content

Commit

Permalink
Refactor io (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
hayorov authored Oct 4, 2022
1 parent 3ce301a commit 944450a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/repo/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"fmt"
"io"
"io/ioutil"
"net/url"
"os"
"path"
Expand All @@ -14,7 +13,6 @@ import (

"cloud.google.com/go/storage"
"github.com/ghodss/yaml"
"github.com/hayorov/helm-gcs/pkg/gcs"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
"google.golang.org/api/googleapi"
Expand All @@ -23,6 +21,8 @@ import (
"helm.sh/helm/v3/pkg/helmpath"
"helm.sh/helm/v3/pkg/provenance"
"helm.sh/helm/v3/pkg/repo"

"github.com/hayorov/helm-gcs/pkg/gcs"
)

var (
Expand Down Expand Up @@ -264,7 +264,7 @@ func (r *Repo) indexFile() (*repo.IndexFile, error) {
if err != nil {
return nil, errors.Wrap(err, "reader")
}
b, err := ioutil.ReadAll(reader)
b, err := io.ReadAll(reader)
if err != nil {
return nil, errors.Wrap(err, "read")
}
Expand Down

0 comments on commit 944450a

Please sign in to comment.