From 5007ddcb1ec0558c72bd80380e233bd1f4bcde66 Mon Sep 17 00:00:00 2001 From: Azareal Date: Sun, 8 Mar 2020 18:10:56 +1000 Subject: [PATCH] fix tests --- common/topic_list.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/topic_list.go b/common/topic_list.go index 4d84ecce..64ad68bc 100644 --- a/common/topic_list.go +++ b/common/topic_list.go @@ -179,7 +179,9 @@ func (tList *DefaultTopicList) Tick() error { addScore(f) } for _, f := range top5 { - fshort = append(fshort, f) + if f != nil { + fshort = append(fshort, f) + } } fList := make(map[int]*ForumTopicListHolder)