Skip to content

Commit

Permalink
Remove deprecated io/ioutil from flux tree
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Prodan <[email protected]>
  • Loading branch information
stefanprodan committed Nov 22, 2021
1 parent 75a18b4 commit 8731f00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/flux/tree_kustomization.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"encoding/base64"
"encoding/json"
"fmt"
"io/ioutil"
"io"
"strings"

"github.com/fluxcd/flux2/internal/tree"
Expand Down Expand Up @@ -256,7 +256,7 @@ func getHelmReleaseInventory(ctx context.Context, objectKey client.ObjectKey, ku
return nil, err
}
defer r.Close()
b2, err := ioutil.ReadAll(r)
b2, err := io.ReadAll(r)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 8731f00

Please sign in to comment.