Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #136 from vmware/ioutil-deprecation
Browse files Browse the repository at this point in the history
Fix deprecated ioutil
  • Loading branch information
frodenas authored Feb 22, 2023
2 parents dc21e0a + 3478fd5 commit a79eda0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
with:
version: v1.51.2
args: --issues-exit-code=1
only-new-issues: true

- name: Import GPG key
id: import_gpg
Expand Down
4 changes: 2 additions & 2 deletions sdk/client_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package sdk
import (
"encoding/json"
"fmt"
"io/ioutil"
"io"
"net/http"
"net/url"

Expand Down Expand Up @@ -107,7 +107,7 @@ func FromAPIRequestToHTTPRequest(apiReq *APIRequest) (*http.Request, error) {

// FromHTTPRespToAPIResp converts Http response to API response
func FromHTTPRespToAPIResp(resp *http.Response) (*APIResponse, error) {
respBody, err := ioutil.ReadAll(resp.Body)
respBody, err := io.ReadAll(resp.Body)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit a79eda0

Please sign in to comment.