Added NewPostList constructor to set fields to be non-null (#5440)

Этот коммит содержится в:
Harrison Healey
2017-02-16 15:53:04 -05:00
коммит произвёл Joram Wilander
родитель 38c42ca53f
Коммит eadf37ad7a
3 изменённых файлов: 15 добавлений и 10 удалений

Просмотреть файл

@@ -450,7 +450,7 @@ func SearchPostsInTeam(terms string, userId string, teamId string, isOrSearch bo
}
}
posts := &model.PostList{}
posts := model.NewPostList()
for _, channel := range channels {
if result := <-channel; result.Err != nil {
return nil, result.Err