Skip to content

Commit

Permalink
client: drop deprecated io/ioutil
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Lehner <florian.lehner@elastic.co>
  • Loading branch information
florianl committed Aug 5, 2024
1 parent 4d065c9 commit 7768daf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/client/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"crypto/x509"
"errors"
"io"
"io/ioutil"

protobuf "github.com/golang/protobuf/proto"
"google.golang.org/grpc"
Expand Down Expand Up @@ -40,7 +39,7 @@ const (
// NewFromReader creates a new client reading the connection information from the io.Reader.
func NewFromReader(reader io.Reader, impl StateInterface, actions ...Action) (Client, error) {
connInfo := &proto.StartUpInfo{}
data, err := ioutil.ReadAll(reader)
data, err := io.ReadAll(reader)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 7768daf

Please sign in to comment.