1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-09-15 18:57:04 +00:00

Reformat some Go files

When working on #994 I noticed that some Go files are not formatted with
`gofmt`.

This PR fixes this.
This commit is contained in:
Ilya Mateyko 2021-01-27 13:09:50 +00:00 committed by fguillot
parent 7c44238bae
commit 4464802947
7 changed files with 19 additions and 19 deletions

View file

@ -125,7 +125,7 @@ func (s *Storage) FeedsWithCounters(userID int64) (model.Feeds, error) {
builder.WithCounters()
builder.WithOrder(model.DefaultFeedSorting)
builder.WithDirection(model.DefaultFeedSortingDirection)
return builder.GetFeeds()
return builder.GetFeeds()
}
// FeedsByCategoryWithCounters returns all feeds of the given user/category with counters of read and unread entries.
@ -176,7 +176,7 @@ func (s *Storage) FeedByID(userID, feedID int64) (*model.Feed, error) {
case err != nil:
return nil, fmt.Errorf(`store: unable to fetch feed #%d: %v`, feedID, err)
}
return feed, nil
}

View file

@ -15,17 +15,17 @@ import (
// FeedQueryBuilder builds a SQL query to fetch feeds.
type FeedQueryBuilder struct {
store *Storage
args []interface{}
conditions []string
order string
direction string
limit int
offset int
withCounters bool
counterJoinFeeds bool
counterArgs []interface{}
counterConditions []string
store *Storage
args []interface{}
conditions []string
order string
direction string
limit int
offset int
withCounters bool
counterJoinFeeds bool
counterArgs []interface{}
counterConditions []string
}
// NewFeedQueryBuilder returns a new FeedQueryBuilder.
@ -304,4 +304,4 @@ func (f *FeedQueryBuilder) fetchFeedCounter() (unreadCounters map[int64]int, rea
}
return readCounters, unreadCounters, nil
}
}