refactor: remove redundant slice expression in bytes.NewBuffer call

This commit is contained in:
Adrian 2025-10-18 00:18:20 +02:00 committed by GitHub
parent 342285b139
commit 16b394d002
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -80,7 +80,7 @@ func LoadTransitionState(db ethdb.KeyValueReader, root common.Hash, isVerkle boo
if len(data) > 0 { if len(data) > 0 {
var ( var (
newts TransitionState newts TransitionState
buf = bytes.NewBuffer(data[:]) buf = bytes.NewBuffer(data)
dec = gob.NewDecoder(buf) dec = gob.NewDecoder(buf)
) )
// Decode transition state // Decode transition state