shift around some logic to make sure things aren't accidentally left set

This commit is contained in:
kim 2025-04-08 18:20:57 +01:00
parent 13d5adbfe0
commit d725bf22a6

View file

@ -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.