Fix allocation.

pull/137/head
Ollivier Robert 2021-04-15 15:02:19 +02:00 committed by mattn
parent 2f161cfa50
commit 932595ebec
1 changed files with 1 additions and 1 deletions

View File

@ -389,7 +389,7 @@ func (c *Client) GetTimelineDirect(ctx context.Context, pg *Pagination) ([]*Stat
return nil, err
}
var statuses = make([]*Status, len(conversations))
var statuses = []*Status{}
for _, c := range conversations {
s := c.LastStatus