Skip to content

Commit cd7da9d

Browse files
committed
Drop deprecated io/ioutil
Signed-off-by: Hidde Beydals <hello@hidde.co>
1 parent 78f4bdc commit cd7da9d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/gcp/gcp_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import (
2222
"encoding/json"
2323
"fmt"
2424
"io"
25-
"io/ioutil"
2625
"log"
2726
"net"
2827
"net/http"
@@ -55,7 +54,7 @@ var (
5554

5655
func TestMain(m *testing.M) {
5756
hc, close = newTestServer(func(w http.ResponseWriter, r *http.Request) {
58-
io.Copy(ioutil.Discard, r.Body)
57+
io.Copy(io.Discard, r.Body)
5958
if r.RequestURI == fmt.Sprintf("/storage/v1/b/%s?alt=json&prettyPrint=false&projection=full", bucketName) {
6059
w.WriteHeader(200)
6160
response := getBucket()

0 commit comments

Comments
 (0)