simplify get

This commit is contained in:
filifa 2024-07-20 12:05:23 -05:00
parent 0ac209dda9
commit 0418d533dd
1 changed files with 1 additions and 6 deletions

View File

@ -101,12 +101,7 @@ func (c *Client) RequestDiffPatch(gamePk, startTimecode, pushUpdateId string) (D
func (c *Client) get(endpoint *url.URL) ([]byte, error) { func (c *Client) get(endpoint *url.URL) ([]byte, error) {
url := c.baseURL.ResolveReference(endpoint) url := c.baseURL.ResolveReference(endpoint)
req, err := http.NewRequest("GET", url.String(), nil) resp, err := c.httpClient.Get(url.String())
if err != nil {
return nil, err
}
resp, err := c.httpClient.Do(req)
if err != nil { if err != nil {
return nil, err return nil, err
} }