mirror of
https://github.com/miniflux/v2.git
synced 2025-07-02 16:38:37 +00:00
fix: address minor issues detected by Go linters
This commit is contained in:
parent
febb7b1748
commit
31f0afe1ac
10 changed files with 31 additions and 25 deletions
|
@ -77,7 +77,9 @@ func (h *Handler) Import(userID int64, data io.Reader) error {
|
|||
Category: category,
|
||||
}
|
||||
|
||||
h.store.CreateFeed(feed)
|
||||
if err := h.store.CreateFeed(feed); err != nil {
|
||||
return fmt.Errorf(`opml: unable to create this feed: %q`, subscription.FeedURL)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue