diff --git a/core/state/state_object_test.go b/core/state/state_object_test.go index e86d3b9943..5ab69c6545 100644 --- a/core/state/state_object_test.go +++ b/core/state/state_object_test.go @@ -35,9 +35,7 @@ func BenchmarkCutOriginal(b *testing.B) { func BenchmarkCutsetterFn(b *testing.B) { value := common.HexToHash("0x01") - cutSetFn := func(r rune) bool { - return int32(r) == int32(0) - } + cutSetFn := func(r rune) bool { return r == 0 } for i := 0; i < b.N; i++ { bytes.TrimLeftFunc(value[:], cutSetFn) }