From eadf37ad7ab0c25764f22923bae60ef70daea75f Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Thu, 16 Feb 2017 15:53:04 -0500 Subject: Added NewPostList constructor to set fields to be non-null (#5440) --- app/post.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/post.go b/app/post.go index da4aa506b..78f56a607 100644 --- a/app/post.go +++ b/app/post.go @@ -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 -- cgit v1.2.3-1-g7c22