Skip to content

Commit

Permalink
refactor: ioutil deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
fmartingr committed Sep 10, 2022
1 parent b279e85 commit f080107
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e-external/apply_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package e2e
import (
"bytes"
"context"
"io/ioutil"
"os"

mmv1beta "github.com/mattermost/mattermost-operator/apis/mattermost/v1beta1"
"github.com/pkg/errors"
Expand All @@ -14,7 +14,7 @@ import (
)

func CreateFromFile(ctx context.Context, k8sClient client.Client, namespace, path string) (func(), error) {
content, err := ioutil.ReadFile(path)
content, err := os.ReadFile(path)
if err != nil {
return func() {}, errors.Wrap(err, "failed to read file content")
}
Expand Down

0 comments on commit f080107

Please sign in to comment.