1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-12-24 10:07:21 +02:00

Always return an empty collection within feed

This commit is contained in:
Thomas Boerger 2016-07-10 21:52:56 +02:00
parent 06d3799787
commit 2cfdf8b294
No known key found for this signature in database
GPG Key ID: 5A388F55283960B6

View File

@ -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: