Skip to content

Commit 51aaa68

Browse files
committed
Convert usage of ioutil to io
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent 03cba58 commit 51aaa68

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

types/invoker.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88
"context"
99
"fmt"
1010
"io"
11-
"io/ioutil"
1211
"log"
1312
"net/http"
1413
"time"
@@ -141,7 +140,7 @@ func (i *Invoker) invoke(ctx context.Context, c *http.Client, gwURL, contentType
141140
if res.Body != nil {
142141
defer res.Body.Close()
143142

144-
bytesOut, err := ioutil.ReadAll(res.Body)
143+
bytesOut, err := io.ReadAll(res.Body)
145144
if err != nil {
146145
return nil, http.StatusServiceUnavailable,
147146
nil,

0 commit comments

Comments
 (0)