From b340103e9d4532b0a8bef4d4491609010344154e Mon Sep 17 00:00:00 2001 From: VolodymyrBg Date: Tue, 16 Sep 2025 14:58:37 +0300 Subject: [PATCH] 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. --- core/tracing/journal_test.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/core/tracing/journal_test.go b/core/tracing/journal_test.go index cf74d83483..e00447f5f3 100644 --- a/core/tracing/journal_test.go +++ b/core/tracing/journal_test.go @@ -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