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/prepare.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/timeline/prepare.go') diff --git a/internal/timeline/prepare.go b/internal/timeline/prepare.go index 3344a0e73..07bde79fa 100644 --- a/internal/timeline/prepare.go +++ b/internal/timeline/prepare.go @@ -63,7 +63,7 @@ func (t *timeline) prepareXBetweenIDs(ctx context.Context, amount int, behindID if frontToBack { // Paging forwards / down. for e := t.items.data.Front(); e != nil; e = e.Next() { - entry := e.Value.(*indexedItemsEntry) //nolint:forcetypeassert + entry := e.Value.(*indexedItemsEntry) if entry.itemID > behindID { l.Trace("item is too new, continuing") @@ -91,7 +91,7 @@ func (t *timeline) prepareXBetweenIDs(ctx context.Context, amount int, behindID } else { // Paging backwards / up. for e := t.items.data.Back(); e != nil; e = e.Prev() { - entry := e.Value.(*indexedItemsEntry) //nolint:forcetypeassert + entry := e.Value.(*indexedItemsEntry) if entry.itemID < beforeID { l.Trace("item is too old, continuing") -- cgit v1.2.3