Skip to content

Commit

Permalink
make linter happy with a false positive
Browse files Browse the repository at this point in the history
Signed-off-by: Ignacio Hagopian <[email protected]>
  • Loading branch information
jsign authored and gballet committed Jun 16, 2023
1 parent eec322c commit 1e7745d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tree_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1323,7 +1323,9 @@ func TestManipulateChildren(t *testing.T) {

func TestLeafNodeInsert(t *testing.T) {
valIdx := 42
ffx31plus42 := append(ffx32KeyTest[:StemSize], byte(valIdx))
ffx31plus42 := make([]byte, 32)
copy(ffx31plus42, ffx32KeyTest[:StemSize])
ffx31plus42[StemSize] = byte(valIdx)

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

0 comments on commit 1e7745d

Please sign in to comment.