Skip to content

Commit

Permalink
Fixed depreciation
Browse files Browse the repository at this point in the history
  • Loading branch information
srkgupta committed Apr 17, 2023
1 parent 16ec261 commit 5e885c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/instance_cloud_oauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"encoding/json"
"fmt"
"io/ioutil"
"io"
"net/http"
"strings"

Expand Down Expand Up @@ -165,7 +165,7 @@ func (ci *cloudOAuthInstance) getJiraCloudResourceID(client http.Client) (string
}

defer response.Body.Close()
contents, err := ioutil.ReadAll(response.Body)
contents, err := io.ReadAll(response.Body)
if err != nil {
return "", fmt.Errorf("failed read accesible resources response: %s", err.Error())
}
Expand Down

0 comments on commit 5e885c9

Please sign in to comment.