From d273d817cb64fdaf4774540170847cff0faccea6 Mon Sep 17 00:00:00 2001 From: rjl493456442 Date: Wed, 20 Aug 2025 22:48:11 +0800 Subject: [PATCH] Apply suggestion from @gballet Co-authored-by: Guillaume Ballet <3272758+gballet@users.noreply.github.com> --- trie/trie.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trie/trie.go b/trie/trie.go index 874bd4f510..98cf751f47 100644 --- a/trie/trie.go +++ b/trie/trie.go @@ -518,7 +518,7 @@ func (t *Trie) delete(n node, prefix, key []byte) (bool, node, error) { // always creates a new slice) instead of append to // avoid modifying n.Key since it might be shared with // other nodes. - return true, &shortNode{slices.Concat(n.Key, child.Key...), child.Val, t.newFlag()}, nil + return true, &shortNode{slices.Concat(n.Key, child.Key), child.Val, t.newFlag()}, nil default: return true, &shortNode{n.Key, child, t.newFlag()}, nil }