diff options
author | Duco van Amstel <duco.vanamstel@gmail.com> | 2018-12-05 23:40:55 +0000 |
---|---|---|
committer | Wim <wim@42.be> | 2018-12-06 00:40:55 +0100 |
commit | af7a00d030b89a0fa1c85da8f3a1485c8a757fa1 (patch) | |
tree | e7d2a3e0f309eca268f4ff3599468c5af94d169a /gateway/gateway.go | |
parent | 8a7efce941acf7123481d58c6bf5b5421c25736d (diff) | |
download | matterbridge-msglm-af7a00d030b89a0fa1c85da8f3a1485c8a757fa1.tar.gz matterbridge-msglm-af7a00d030b89a0fa1c85da8f3a1485c8a757fa1.tar.bz2 matterbridge-msglm-af7a00d030b89a0fa1c85da8f3a1485c8a757fa1.zip |
Enable gosec linter (#645)
Diffstat (limited to 'gateway/gateway.go')
-rw-r--r-- | gateway/gateway.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gateway/gateway.go b/gateway/gateway.go index 2874ef24..0ee7a616 100644 --- a/gateway/gateway.go +++ b/gateway/gateway.go @@ -2,7 +2,7 @@ package gateway import ( "bytes" - "crypto/sha1" + "crypto/sha1" //nolint:gosec "fmt" "io/ioutil" "net/http" @@ -466,7 +466,7 @@ func (gw *Gateway) handleFiles(msg *config.Message) { fi.Name = reg.ReplaceAllString(fi.Name, "_") fi.Name += ext - sha1sum := fmt.Sprintf("%x", sha1.Sum(*fi.Data))[:8] + sha1sum := fmt.Sprintf("%x", sha1.Sum(*fi.Data))[:8] //nolint:gosec if gw.BridgeValues().General.MediaServerUpload != "" { // Use MediaServerUpload. Upload using a PUT HTTP request and basicauth. |