Skip to content

Commit

Permalink
Fix deprecated api
Browse files Browse the repository at this point in the history
  • Loading branch information
lusingander committed Oct 27, 2023
1 parent efa821c commit c0ae3b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/gh/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"io"
"net/http"
"net/url"
"os/exec"
Expand Down Expand Up @@ -39,7 +39,7 @@ func postLogin(url string, params url.Values) ([]byte, error) {
return nil, fmt.Errorf("unexpected status code: %s", resp.Status)
}

return ioutil.ReadAll(resp.Body)
return io.ReadAll(resp.Body)
}

type deviceCodeResponse struct {
Expand Down

0 comments on commit c0ae3b6

Please sign in to comment.