Update golangci-lint

This commit is contained in:
9seconds
2020-08-10 14:39:50 +03:00
parent 8ac786581b
commit 7a6695f6c4
47 changed files with 133 additions and 114 deletions
+3 -4
View File
@@ -8,9 +8,8 @@ import (
"io"
mrand "math/rand"
"golang.org/x/crypto/curve25519"
"github.com/9seconds/mtg/config"
"golang.org/x/crypto/curve25519"
)
type ServerHello struct {
@@ -37,8 +36,8 @@ func (s ServerHello) WelcomePacket() []byte {
}
recChangeCipher.WriteBytes(buf)
hostCert := make([]byte, 1024+mrand.Intn(3092))
rand.Read(hostCert) // nolint: errcheck
hostCert := make([]byte, 1024+mrand.Intn(3092)) // nolint: gosec
rand.Read(hostCert) // nolint: errcheck
recData := Record{
Type: RecordTypeApplicationData,