Skip to content

Commit

Permalink
fix: pass pointer to Decode
Browse files Browse the repository at this point in the history
  • Loading branch information
CorentinB committed Nov 6, 2024
1 parent db2e701 commit 45e0eb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion get.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (c *Client) Feed(size int, strategy string) (URLs []URL, err error) {
}

// decode response body
err = json.NewDecoder(resp.Body).Decode(URLs)
err = json.NewDecoder(resp.Body).Decode(&URLs)
if err != nil {
return URLs, err
}
Expand Down

0 comments on commit 45e0eb3

Please sign in to comment.