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