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 --- gateway/gateway.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gateway') 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] -- cgit v1.2.3