feat: replace ioutil with io and os (#1816)

This commit is contained in:
Nicholas Wiersma
2023-01-27 17:12:47 +02:00
committed by GitHub
parent 6baf7c9033
commit ab64133949
23 changed files with 76 additions and 81 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ package stash
import (
"bytes"
"context"
"io/ioutil"
"io"
"os"
"strings"
"testing"
@@ -67,7 +67,7 @@ func TestWithGCS(t *testing.T) {
t.Fatal(err)
}
defer zip.Close()
zipContent, err := ioutil.ReadAll(zip)
zipContent, err := io.ReadAll(zip)
if err != nil {
t.Fatal(err)
}