From c6e00afc7c23df994b70eee89d2d392718e6a321 Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Wed, 4 Oct 2023 13:09:42 +0100 Subject: [feature] tentatively start adding polls support (#2249) --- internal/timeline/index.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'internal/timeline/index.go') diff --git a/internal/timeline/index.go b/internal/timeline/index.go index 993f7dc5d..6abb6d28d 100644 --- a/internal/timeline/index.go +++ b/internal/timeline/index.go @@ -65,7 +65,7 @@ func (t *timeline) indexXBetweenIDs(ctx context.Context, amount int, behindID st ) for e := t.items.data.Front(); e != nil; e = e.Next() { - entry := e.Value.(*indexedItemsEntry) //nolint:forcetypeassert + entry := e.Value.(*indexedItemsEntry) position++ @@ -174,7 +174,6 @@ func (t *timeline) grab(ctx context.Context, amount int, behindID string, before // Don't grab more than we need to. amount-grabbed, ) - if err != nil { // Grab function already checks for // db.ErrNoEntries, so if an error @@ -280,5 +279,5 @@ func (t *timeline) OldestIndexedItemID() string { return "" } - return e.Value.(*indexedItemsEntry).itemID //nolint:forcetypeassert + return e.Value.(*indexedItemsEntry).itemID } -- cgit v1.2.3