mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 20:56:42 +00:00
refactor: remove redundant slice expression in bytes.NewBuffer call
This commit is contained in:
parent
342285b139
commit
16b394d002
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue