Fix empty tag

This commit is contained in:
Meutel 2017-07-31 20:49:12 +02:00
parent d992c30346
commit 24baaf2175

View File

@ -177,7 +177,7 @@ func (app *Bouquins) queryBooksTags(limit, offset int, sort, order string) (map[
}
bookTags := tags[book]
if bookTags == nil {
bookTags = make([]string, 1)
bookTags = make([]string, 0)
tags[book] = bookTags
}
tags[book] = append(bookTags, tag)