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/matrix | |
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/matrix')
-rw-r--r-- | bridge/matrix/matrix.go | 4 |
1 files changed, 2 insertions, 2 deletions
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" } } |