diff options
author | Wim <wim@42.be> | 2018-11-08 22:29:34 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2018-11-08 22:29:34 +0100 |
commit | 78401214b0b5d26fd3f0d10139061edce35e56c1 (patch) | |
tree | 21965e91716e118180e9d928ebabb08a8d90daef /bridge/slack | |
parent | b2a07aba3a4343087bdbaa2bb5ef7d703bca79e1 (diff) | |
download | matterbridge-msglm-78401214b0b5d26fd3f0d10139061edce35e56c1.tar.gz matterbridge-msglm-78401214b0b5d26fd3f0d10139061edce35e56c1.tar.bz2 matterbridge-msglm-78401214b0b5d26fd3f0d10139061edce35e56c1.zip |
Make scopelint happy
Diffstat (limited to 'bridge/slack')
-rw-r--r-- | bridge/slack/handlers.go | 1 | ||||
-rw-r--r-- | bridge/slack/slack.go | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/bridge/slack/handlers.go b/bridge/slack/handlers.go index e3a10bcd..61f572fa 100644 --- a/bridge/slack/handlers.go +++ b/bridge/slack/handlers.go @@ -229,6 +229,7 @@ func (b *Bslack) handleAttachments(ev *slack.MessageEvent, rmsg *config.Message) // If we have files attached, download them (in memory) and put a pointer to it in msg.Extra. for _, f := range ev.Files { + f := f err := b.handleDownloadFile(rmsg, &f) if err != nil { b.Log.Errorf("Could not download incoming file: %#v", err) diff --git a/bridge/slack/slack.go b/bridge/slack/slack.go index 814aeeac..fd8e3791 100644 --- a/bridge/slack/slack.go +++ b/bridge/slack/slack.go @@ -219,6 +219,7 @@ func (b *Bslack) sendWebhook(msg config.Message) (string, error) { if msg.Extra != nil { // this sends a message only if we received a config.EVENT_FILE_FAILURE_SIZE for _, rmsg := range helper.HandleExtra(&msg, b.General) { + rmsg := rmsg // scopelint iconURL := config.GetIconURL(&rmsg, b.GetString(iconURLConfig)) matterMessage := matterhook.OMessage{ IconURL: iconURL, |