mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 13:16:42 +00:00
core/tracing: remove unnecessary 'copy' field skip in TestAllHooksCalled
This commit is contained in:
parent
b05fe4aa64
commit
6795a75910
1 changed files with 0 additions and 4 deletions
|
|
@ -280,10 +280,6 @@ func TestAllHooksCalled(t *testing.T) {
|
||||||
if field.Type.Kind() != reflect.Func {
|
if field.Type.Kind() != reflect.Func {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
// Skip non-hooks, i.e. Copy
|
|
||||||
if field.Name == "copy" {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
// Skip if field is not set
|
// Skip if field is not set
|
||||||
if wrappedValue.Field(i).IsNil() {
|
if wrappedValue.Field(i).IsNil() {
|
||||||
continue
|
continue
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue