mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 07:37:20 +00:00
core/tracing: remove unnecessary 'copy' field skip in TestAllHooksCalled (#32622)
This test iterated over Hooks fields and skipped a field named copy. The Hooks struct has no such field, making the condition dead code.
This commit is contained in:
parent
e48242bb69
commit
b340103e9d
1 changed files with 0 additions and 4 deletions
|
|
@ -280,10 +280,6 @@ func TestAllHooksCalled(t *testing.T) {
|
|||
if field.Type.Kind() != reflect.Func {
|
||||
continue
|
||||
}
|
||||
// Skip non-hooks, i.e. Copy
|
||||
if field.Name == "copy" {
|
||||
continue
|
||||
}
|
||||
// Skip if field is not set
|
||||
if wrappedValue.Field(i).IsNil() {
|
||||
continue
|
||||
|
|
|
|||
Loading…
Reference in a new issue