Skip to content

Commit

Permalink
Fix JSON unmarshaling in search endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanfowler committed Oct 17, 2016
1 parent b989f5f commit 16befe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion search.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func (c *Client) SearchTweets(ctx context.Context, params SearchTweetsParams) (*
return nil, err
}
var tweets []Tweet
err = json.NewDecoder(resp.Body).Decode(resp.Body)
err = json.NewDecoder(resp.Body).Decode(&tweets)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 16befe5

Please sign in to comment.