aboutsummaryrefslogtreecommitdiff
path: root/internal/reader/rss/rss.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/reader/rss/rss.go')
-rw-r--r--internal/reader/rss/rss.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/reader/rss/rss.go b/internal/reader/rss/rss.go
index 323c6041..f2ecdaec 100644
--- a/internal/reader/rss/rss.go
+++ b/internal/reader/rss/rss.go
@@ -190,7 +190,7 @@ type rssItem struct {
}
func (r *rssItem) Transform() *model.Entry {
- entry := new(model.Entry)
+ entry := model.NewEntry()
entry.URL = r.entryURL()
entry.CommentsURL = r.entryCommentsURL()
entry.Date = r.entryDate()
@@ -388,7 +388,7 @@ func (r *rssItem) entryEnclosures() model.EnclosureList {
}
func (r *rssItem) entryCategories() []string {
- var categoryList []string
+ categoryList := make([]string, 0)
for _, rssCategory := range r.Categories {
if strings.Contains(rssCategory.Inner, "<![CDATA[") {