From a5265410502eea82e7405fecb379e22b608ea9cd Mon Sep 17 00:00:00 2001 From: kim Date: Tue, 8 Apr 2025 18:20:57 +0100 Subject: [PATCH] shift around some logic to make sure things aren't accidentally left set --- internal/cache/timeline/status.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/cache/timeline/status.go b/internal/cache/timeline/status.go index 214d1bcdd..c20ffc0fb 100644 --- a/internal/cache/timeline/status.go +++ b/internal/cache/timeline/status.go @@ -346,6 +346,11 @@ func (t *StatusTimeline) Load( nextPg.Min.Value = lo nextPg.Max.Value = hi + // Reset lo, hi values from being + // used as input arguments, ready + // to be updated for return. + lo, hi = "", "" + // Interstitial meta objects. var metas []*StatusMeta @@ -374,11 +379,6 @@ func (t *StatusTimeline) Load( dir, ) - // Reset lo, hi values from being - // used as input arguments, ready - // to be updated for return. - lo, hi = "", "" - if len(metas) > 0 { // Before we can do any filtering, we need // to load status models for cached entries.