mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-07 05:46:32 +00:00
please the linter gods:
crypto/hkdfchacha20poly1305/hkdfchachapoly_test.go:36:25⚠️ should use make([]byte, 24) instead (S1019) (gosimple)
This commit is contained in:
@@ -33,7 +33,7 @@ func TestVector(t *testing.T) {
|
||||
ct, _ := hex.DecodeString(cts[i])
|
||||
|
||||
byteArr := []byte{byte(i)}
|
||||
nonce := make([]byte, 24, 24)
|
||||
nonce := make([]byte, 24)
|
||||
nonce[0] = byteArr[0]
|
||||
|
||||
plaintext, err := aead.Open(nil, nonce, ct, byteArr)
|
||||
|
||||
Reference in New Issue
Block a user