Skip to content

Commit

Permalink
Convert usage of ioutil to io
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
  • Loading branch information
alexellis committed Dec 15, 2022
1 parent 03cba58 commit 51aaa68
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions types/invoker.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"context"
"fmt"
"io"
"io/ioutil"
"log"
"net/http"
"time"
Expand Down Expand Up @@ -141,7 +140,7 @@ func (i *Invoker) invoke(ctx context.Context, c *http.Client, gwURL, contentType
if res.Body != nil {
defer res.Body.Close()

bytesOut, err := ioutil.ReadAll(res.Body)
bytesOut, err := io.ReadAll(res.Body)
if err != nil {
return nil, http.StatusServiceUnavailable,
nil,
Expand Down

0 comments on commit 51aaa68

Please sign in to comment.