Skip to content

Commit 1e7745d

Browse files
jsigngballet
authored andcommitted
make linter happy with a false positive
Signed-off-by: Ignacio Hagopian <[email protected]>
1 parent eec322c commit 1e7745d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tree_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1323,7 +1323,9 @@ func TestManipulateChildren(t *testing.T) {
13231323

13241324
func TestLeafNodeInsert(t *testing.T) {
13251325
valIdx := 42
1326-
ffx31plus42 := append(ffx32KeyTest[:StemSize], byte(valIdx))
1326+
ffx31plus42 := make([]byte, 32)
1327+
copy(ffx31plus42, ffx32KeyTest[:StemSize])
1328+
ffx31plus42[StemSize] = byte(valIdx)
13271329

13281330
tree := New()
13291331
if err := tree.Insert(ffx31plus42, testValue, nil); err != nil {

0 commit comments

Comments
 (0)