From 399789811ecab11f7dfb775f83d063b20167bb1d Mon Sep 17 00:00:00 2001 From: Wim Date: Thu, 8 Nov 2018 00:46:34 +0100 Subject: Make gocritic linter happy --- bridge/telegram/telegram.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bridge/telegram/telegram.go') 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 -- cgit v1.2.3