Skip to content

Commit b340103

Browse files
authored
core/tracing: remove unnecessary 'copy' field skip in TestAllHooksCalled (ethereum#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.
1 parent e48242b commit b340103

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

core/tracing/journal_test.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -280,10 +280,6 @@ func TestAllHooksCalled(t *testing.T) {
280280
if field.Type.Kind() != reflect.Func {
281281
continue
282282
}
283-
// Skip non-hooks, i.e. Copy
284-
if field.Name == "copy" {
285-
continue
286-
}
287283
// Skip if field is not set
288284
if wrappedValue.Field(i).IsNil() {
289285
continue

0 commit comments

Comments
 (0)