From 346ecabd0717b4844518ded1615ab6c53c76e4be Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Tue, 18 Jul 2023 10:39:16 +0200 Subject: [PATCH] [bugfix] Add missing `continue` statement in `prepareXBetweenIDs` (#1996) --- internal/timeline/prepare.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/timeline/prepare.go b/internal/timeline/prepare.go index 81d0ddc38..3344a0e73 100644 --- a/internal/timeline/prepare.go +++ b/internal/timeline/prepare.go @@ -127,6 +127,7 @@ func (t *timeline) prepareXBetweenIDs(ctx context.Context, amount int, behindID // This means we can remove it and skip past it. l.Debugf("db.ErrNoEntries while trying to prepare %s; will remove from timeline", entry.itemID) t.items.data.Remove(e) + continue } // We've got a proper db error. return gtserror.Newf("db error while trying to prepare %s: %w", entry.itemID, err)