summaryrefslogtreecommitdiffstats
path: root/bridge/mattermost/mattermost.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2018-11-08 22:29:34 +0100
committerWim <wim@42.be>2018-11-08 22:29:34 +0100
commit78401214b0b5d26fd3f0d10139061edce35e56c1 (patch)
tree21965e91716e118180e9d928ebabb08a8d90daef /bridge/mattermost/mattermost.go
parentb2a07aba3a4343087bdbaa2bb5ef7d703bca79e1 (diff)
downloadmatterbridge-msglm-78401214b0b5d26fd3f0d10139061edce35e56c1.tar.gz
matterbridge-msglm-78401214b0b5d26fd3f0d10139061edce35e56c1.tar.bz2
matterbridge-msglm-78401214b0b5d26fd3f0d10139061edce35e56c1.zip
Make scopelint happy
Diffstat (limited to 'bridge/mattermost/mattermost.go')
-rw-r--r--bridge/mattermost/mattermost.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/bridge/mattermost/mattermost.go b/bridge/mattermost/mattermost.go
index 5e04923e..55a4e853 100644
--- a/bridge/mattermost/mattermost.go
+++ b/bridge/mattermost/mattermost.go
@@ -389,6 +389,7 @@ func (b *Bmattermost) 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("iconurl"))
matterMessage := matterhook.OMessage{IconURL: iconURL, Channel: rmsg.Channel, UserName: rmsg.Username, Text: rmsg.Text, Props: make(map[string]interface{})}
matterMessage.Props["matterbridge_"+b.uuid] = true