mirror of
https://github.com/miniflux/v2.git
synced 2025-07-22 17:18:37 +00:00
Make sure golint pass on the code base
This commit is contained in:
parent
8781648af9
commit
bb8e61c7c5
59 changed files with 322 additions and 171 deletions
|
@ -21,7 +21,7 @@ type Handler struct {
|
|||
|
||||
// Export exports user feeds to OPML.
|
||||
func (h *Handler) Export(userID int64) (string, error) {
|
||||
feeds, err := h.store.GetFeeds(userID)
|
||||
feeds, err := h.store.Feeds(userID)
|
||||
if err != nil {
|
||||
log.Println(err)
|
||||
return "", errors.New("unable to fetch feeds")
|
||||
|
@ -52,13 +52,13 @@ func (h *Handler) Import(userID int64, data io.Reader) (err error) {
|
|||
var category *model.Category
|
||||
|
||||
if subscription.CategoryName == "" {
|
||||
category, err = h.store.GetFirstCategory(userID)
|
||||
category, err = h.store.FirstCategory(userID)
|
||||
if err != nil {
|
||||
log.Println(err)
|
||||
return errors.New("unable to find first category")
|
||||
}
|
||||
} else {
|
||||
category, err = h.store.GetCategoryByTitle(userID, subscription.CategoryName)
|
||||
category, err = h.store.CategoryByTitle(userID, subscription.CategoryName)
|
||||
if err != nil {
|
||||
log.Println(err)
|
||||
return errors.New("unable to search category by title")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue