Skip to content

Commit

Permalink
replace ioutil with io
Browse files Browse the repository at this point in the history
Signed-off-by: Kengo TODA <skypencil+github@gmail.com>
  • Loading branch information
KengoTODA committed Aug 23, 2022
1 parent ba92a6c commit 8ad4b7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gcs/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package gcs
import (
"context"
"fmt"
"io/ioutil"
"io"
"os"

gcStorage "cloud.google.com/go/storage"
Expand All @@ -26,7 +26,7 @@ func (a Adapter) Read(ctx context.Context) ([]byte, error) {
}
defer r.Close()

body, err := ioutil.ReadAll(r)
body, err := io.ReadAll(r)
if err != nil {
return nil, fmt.Errorf("failed reading from gcs://%s/%s: %w", a.config.Bucket, a.config.Name, err)
}
Expand Down

0 comments on commit 8ad4b7b

Please sign in to comment.