fix tests

This commit is contained in:
Azareal 2020-03-08 18:10:56 +10:00
parent f5c9a34fdd
commit 5007ddcb1e
1 changed files with 3 additions and 1 deletions

View File

@ -179,7 +179,9 @@ func (tList *DefaultTopicList) Tick() error {
addScore(f) addScore(f)
} }
for _, f := range top5 { for _, f := range top5 {
fshort = append(fshort, f) if f != nil {
fshort = append(fshort, f)
}
} }
fList := make(map[int]*ForumTopicListHolder) fList := make(map[int]*ForumTopicListHolder)