noisecat icon indicating copy to clipboard operation
noisecat copied to clipboard

assignment mismatch

Open petite-abeille opened this issue 4 years ago • 1 comments

# go version
go version go1.16.3 darwin/amd64

Getting a compilation error in noisenet/conn.go:

# make darwin
../noisenet/conn.go:97:14: assignment mismatch: 1 variable but c.out.Encrypt returns 2 values

Which refers to this line:

ciphertext := c.out.Encrypt(nil, nil, data[:m])

Adding an extra value alleviates the problem:

ciphertext, _ := c.out.Encrypt(nil, nil, data[:m])

petite-abeille avatar Apr 28 '21 09:04 petite-abeille

I can confirm this is an issue with Go version 1.17 too.

❯ go version
go version go1.17.3 linux/amd64

haarts avatar Dec 01 '21 14:12 haarts