mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-09-01 08:44:01 +03:00
Updates for go 1.18
This commit is contained in:
@@ -41,7 +41,7 @@ func (r *HandshakeResponse) Valid() error {
|
||||
// NewHandshakeResponse constructs new handshake response from the given
|
||||
// data.
|
||||
func NewHandshakeResponse(data []byte) (*HandshakeResponse, error) {
|
||||
if len(data) != 32 {
|
||||
if len(data) != 32 { // nolint: gomnd
|
||||
return nil, fmt.Errorf("incorrect handshake response length %d", len(data))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user