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/matrix/matrix.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bridge/matrix') diff --git a/bridge/matrix/matrix.go b/bridge/matrix/matrix.go index 18bc5572..aaf19326 100644 --- a/bridge/matrix/matrix.go +++ b/bridge/matrix/matrix.go @@ -234,11 +234,11 @@ func (b *Bmatrix) handleDownloadFile(rmsg *config.Message, content map[string]in if msgtype == "m.image" { mext, _ := mime.ExtensionsByType(mtype) if len(mext) > 0 { - name = name + mext[0] + name += mext[0] } } else { // just a default .png extension if we don't have mime info - name = name + ".png" + name += ".png" } } -- cgit v1.2.3