Skip to content

Commit

Permalink
no need for pointers
Browse files Browse the repository at this point in the history
  • Loading branch information
piqoni committed May 8, 2023
1 parent 2bcb2b5 commit ec710af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions feeds_writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func parseFeed(fp *gofeed.Parser, url string, limit int) *gofeed.Feed {
}

// Generates the feed items and returns them as a string
func generateFeedItems(feed *gofeed.Feed, rss *RSS) string {
func generateFeedItems(feed *gofeed.Feed, rss RSS) string {
var items string

for _, item := range feed.Items {
Expand Down Expand Up @@ -213,7 +213,7 @@ func getFeedTitleAndLink(item *gofeed.Item) (string, string) {
}

// Returns the summary for the given feed item
func getSummary(rss *RSS, item *gofeed.Item, link string) string {
func getSummary(rss RSS, item *gofeed.Item, link string) string {
if !rss.summarize {
return ""
}
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func main() {
continue
}

items := generateFeedItems(parsedFeed, &feed)
items := generateFeedItems(parsedFeed, feed)
if items != "" {
writeFeedToMarkdown(parsedFeed, items)
}
Expand Down

0 comments on commit ec710af

Please sign in to comment.