mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 05:36:46 +00:00
Apply suggestion from @gballet
Co-authored-by: Guillaume Ballet <3272758+gballet@users.noreply.github.com>
This commit is contained in:
parent
ca8c82edce
commit
d273d817cb
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue