summaryrefslogtreecommitdiffstats
path: root/gateway
diff options
context:
space:
mode:
authorWim <wim@42.be>2018-11-08 00:46:34 +0100
committerWim <wim@42.be>2018-11-08 00:46:34 +0100
commit399789811ecab11f7dfb775f83d063b20167bb1d (patch)
tree771636eeeec33a66be1def907cc27f25edf10506 /gateway
parent8d117cb0a48b4b7d137d1900cf0160755bfb1b65 (diff)
downloadmatterbridge-msglm-399789811ecab11f7dfb775f83d063b20167bb1d.tar.gz
matterbridge-msglm-399789811ecab11f7dfb775f83d063b20167bb1d.tar.bz2
matterbridge-msglm-399789811ecab11f7dfb775f83d063b20167bb1d.zip
Make gocritic linter happy
Diffstat (limited to 'gateway')
-rw-r--r--gateway/gateway.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/gateway/gateway.go b/gateway/gateway.go
index e699251f..d4c84650 100644
--- a/gateway/gateway.go
+++ b/gateway/gateway.go
@@ -481,7 +481,7 @@ func (gw *Gateway) handleFiles(msg *config.Message) {
ext := filepath.Ext(fi.Name)
fi.Name = fi.Name[0 : len(fi.Name)-len(ext)]
fi.Name = reg.ReplaceAllString(fi.Name, "_")
- fi.Name = fi.Name + ext
+ fi.Name += ext
sha1sum := fmt.Sprintf("%x", sha1.Sum(*fi.Data))[:8]