Skip to content

Commit d273d81

Browse files
rjl493456442gballet
andcommitted
Apply suggestion from @gballet
Co-authored-by: Guillaume Ballet <[email protected]>
1 parent ca8c82e commit d273d81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

trie/trie.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ func (t *Trie) delete(n node, prefix, key []byte) (bool, node, error) {
518518
// always creates a new slice) instead of append to
519519
// avoid modifying n.Key since it might be shared with
520520
// other nodes.
521-
return true, &shortNode{slices.Concat(n.Key, child.Key...), child.Val, t.newFlag()}, nil
521+
return true, &shortNode{slices.Concat(n.Key, child.Key), child.Val, t.newFlag()}, nil
522522
default:
523523
return true, &shortNode{n.Key, child, t.newFlag()}, nil
524524
}

0 commit comments

Comments
 (0)