diff options
author | Wim <wim@42.be> | 2018-11-08 00:46:34 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2018-11-08 00:46:34 +0100 |
commit | 399789811ecab11f7dfb775f83d063b20167bb1d (patch) | |
tree | 771636eeeec33a66be1def907cc27f25edf10506 /bridge/telegram/telegram.go | |
parent | 8d117cb0a48b4b7d137d1900cf0160755bfb1b65 (diff) | |
download | matterbridge-msglm-399789811ecab11f7dfb775f83d063b20167bb1d.tar.gz matterbridge-msglm-399789811ecab11f7dfb775f83d063b20167bb1d.tar.bz2 matterbridge-msglm-399789811ecab11f7dfb775f83d063b20167bb1d.zip |
Make gocritic linter happy
Diffstat (limited to 'bridge/telegram/telegram.go')
-rw-r--r-- | bridge/telegram/telegram.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bridge/telegram/telegram.go b/bridge/telegram/telegram.go index 93cc82f6..43d68edc 100644 --- a/bridge/telegram/telegram.go +++ b/bridge/telegram/telegram.go @@ -303,7 +303,7 @@ func (b *Btelegram) handleDownload(message *tgbotapi.Message, rmsg *config.Messa urlPart := strings.Split(url, "/") name = urlPart[len(urlPart)-1] if !strings.HasSuffix(name, ".webp") { - name = name + ".webp" + name += ".webp" } text = " " + url } @@ -338,7 +338,7 @@ func (b *Btelegram) handleDownload(message *tgbotapi.Message, rmsg *config.Messa name = urlPart[len(urlPart)-1] text = " " + url if !strings.HasSuffix(name, ".ogg") { - name = name + ".ogg" + name += ".ogg" } } if message.Audio != nil { @@ -356,7 +356,7 @@ func (b *Btelegram) handleDownload(message *tgbotapi.Message, rmsg *config.Messa // use the URL instead of native upload if b.GetBool("UseInsecureURL") { b.Log.Debugf("Setting message text to :%s", text) - rmsg.Text = rmsg.Text + text + rmsg.Text += text return nil } // if we have a file attached, download it (in memory) and put a pointer to it in msg.Extra |