Make scopelint happy.

This commit is contained in:
Patrick Connolly
2018-11-20 20:58:10 +08:00
parent f0bedfdd15
commit 5cae3ae8e6

View File

@@ -308,6 +308,7 @@ func (b *Bslack) sendRTM(msg config.Message) (string, error) {
// Upload a file if it exists.
if msg.Extra != nil {
for _, rmsg := range helper.HandleExtra(&msg, b.General) {
rmsg := rmsg // scopelint
messageOptions = b.prepareMessageOptions(&rmsg)
rmsg.Text = rmsg.Username + rmsg.Text
_, err = b.postMessage(&rmsg, messageOptions, channelInfo)