Upgrade golangci-lint for 1.42

This commit is contained in:
9seconds
2021-08-30 11:46:32 +03:00
parent 7718f62477
commit 3e0880f6b4
29 changed files with 90 additions and 89 deletions
+2 -2
View File
@@ -49,8 +49,8 @@ func (s ServerHello) WelcomePacket() []byte {
packet := buf.Bytes()
mac := hmac.New(sha256.New, config.C.Secret)
mac.Write(s.clientHello.Random[:]) // nolint: errcheck
mac.Write(packet) // nolint: errcheck
mac.Write(s.clientHello.Random[:])
mac.Write(packet)
copy(packet[11:], mac.Sum(nil))
return packet