From d9213d61a46b71156b2db7024f7d89302af33a89 Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Wed, 8 Apr 2020 15:37:37 +0100 Subject: [PATCH] Make it compile --- src/github.com/matrix-org/go-neb/services/rssbot/rssbot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/github.com/matrix-org/go-neb/services/rssbot/rssbot.go b/src/github.com/matrix-org/go-neb/services/rssbot/rssbot.go index 0d1ad52..654c9fe 100644 --- a/src/github.com/matrix-org/go-neb/services/rssbot/rssbot.go +++ b/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 { // 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 - itemTitle = item.Title + itemTitle := item.Title if itemTitle == "" { itemTitle = feed.Title }