Browse Source

Make it compile

anoadragon453-patch-1
Kegan Dougal 5 years ago
parent
commit
d9213d61a4
  1. 2
      src/github.com/matrix-org/go-neb/services/rssbot/rssbot.go

2
src/github.com/matrix-org/go-neb/services/rssbot/rssbot.go

@ -351,7 +351,7 @@ func (s *Service) sendToRooms(cli *gomatrix.Client, feedURL string, feed *gofeed
func itemToHTML(feed *gofeed.Feed, item gofeed.Item) gomatrix.HTMLMessage { func itemToHTML(feed *gofeed.Feed, item gofeed.Item) gomatrix.HTMLMessage {
// If an item does not have a title, try using the feed's title instead // If an item does not have a title, try using the feed's title instead
// Create a new variable instead of mutating that which is passed in // Create a new variable instead of mutating that which is passed in
itemTitle = item.Title
itemTitle := item.Title
if itemTitle == "" { if itemTitle == "" {
itemTitle = feed.Title itemTitle = feed.Title
} }

Loading…
Cancel
Save