From 2cfdf8b294449632171ab7306b9afc0df580ec2d Mon Sep 17 00:00:00 2001 From: Thomas Boerger Date: Sun, 10 Jul 2016 21:52:56 +0200 Subject: [PATCH] Always return an empty collection within feed --- store/datastore/users.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/store/datastore/users.go b/store/datastore/users.go index bf721005f..39dde54e9 100644 --- a/store/datastore/users.go +++ b/store/datastore/users.go @@ -27,10 +27,11 @@ func (db *datastore) GetUserList() ([]*model.User, error) { func (db *datastore) GetUserFeed(listof []*model.RepoLite) ([]*model.Feed, error) { var ( - feed []*model.Feed args []interface{} stmt string err error + + feed = []*model.Feed{} ) switch meddler.Default { case meddler.PostgreSQL: @@ -46,10 +47,11 @@ func (db *datastore) GetUserFeed(listof []*model.RepoLite) ([]*model.Feed, error func (db *datastore) GetUserFeedLatest(listof []*model.RepoLite) ([]*model.Feed, error) { var ( - feed []*model.Feed args []interface{} stmt string err error + + feed = []*model.Feed{} ) switch meddler.Default { case meddler.PostgreSQL: