4
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2025-07-09 15:04:04 +00:00

Make scopelint happy

This commit is contained in:
Wim
2018-11-08 22:29:34 +01:00
parent b2a07aba3a
commit 78401214b0
6 changed files with 6 additions and 0 deletions

View File

@ -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