From 932595ebecd98585eb72a46a88060a58987db04f Mon Sep 17 00:00:00 2001 From: Ollivier Robert Date: Thu, 15 Apr 2021 15:02:19 +0200 Subject: [PATCH] Fix allocation. --- status.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/status.go b/status.go index 15ae5f6..28c3f0e 100644 --- a/status.go +++ b/status.go @@ -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