From 4dc70dcb8b20d3b1ffa7b504be2c4da2d68e1657 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Thu, 2 Jan 2020 11:03:30 +0000 Subject: [PATCH] back out unrelated changes looks like my linter got a bit overzealous --- .../matrix-org/go-neb/services/github/github.go | 4 ++-- .../matrix-org/go-neb/services/rssbot/rssbot.go | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/github.com/matrix-org/go-neb/services/github/github.go b/src/github.com/matrix-org/go-neb/services/github/github.go index 914f628..cb867fb 100644 --- a/src/github.com/matrix-org/go-neb/services/github/github.go +++ b/src/github.com/matrix-org/go-neb/services/github/github.go @@ -450,8 +450,8 @@ func (s *Service) expandCommit(roomID, userID, owner, repo, sha string) interfac if err != nil { log.WithError(err).WithFields(log.Fields{ "owner": owner, - "repo": repo, - "sha": sha, + "repo": repo, + "sha": sha, }).Print("Failed to fetch commit") return nil } 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 6aa953f..34be9b3 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 @@ -353,13 +353,13 @@ func itemToHTML(feed *gofeed.Feed, item gofeed.Item) gomatrix.HTMLMessage { Body: fmt.Sprintf("%s: %s ( %s )", html.EscapeString(feed.Title), html.EscapeString(item.Title), html.EscapeString(item.Link)), MsgType: "m.notice", - Format: "org.matrix.custom.html", + Format: "org.matrix.custom.html", FormattedBody: fmt.Sprintf("%s:
%s", html.EscapeString(feed.Title), html.EscapeString(item.Link), html.EscapeString(item.Title)), - // FeedTitle: - //
- // Title of the Entry - } + // FeedTitle: + //
+ // Title of the Entry + } } func ensureItemsHaveGUIDs(feed *gofeed.Feed) {