From 06ec0f80ff98ffd4a9cc3ebc707334ee4aa5f18c Mon Sep 17 00:00:00 2001 From: Yongxuan Zhang Date: Wed, 30 Nov 2022 20:44:48 +0000 Subject: [PATCH] fix --- pkg/reconciler/events/cloudevent/cloud_event_controller_test.go | 1 - pkg/reconciler/events/event.go | 1 - 2 files changed, 2 deletions(-) diff --git a/pkg/reconciler/events/cloudevent/cloud_event_controller_test.go b/pkg/reconciler/events/cloudevent/cloud_event_controller_test.go index 4223ce8ac85..9a87815c36e 100644 --- a/pkg/reconciler/events/cloudevent/cloud_event_controller_test.go +++ b/pkg/reconciler/events/cloudevent/cloud_event_controller_test.go @@ -732,7 +732,6 @@ func TestEmitCloudEvents(t *testing.T) { } } - func setupFakeContext(t *testing.T, behaviour FakeClientBehaviour, withClient bool, expectedEventCount int) context.Context { var ctx context.Context ctx, _ = rtesting.SetupFakeContext(t) diff --git a/pkg/reconciler/events/event.go b/pkg/reconciler/events/event.go index 2e5eacfba4b..e61a24e7994 100644 --- a/pkg/reconciler/events/event.go +++ b/pkg/reconciler/events/event.go @@ -34,4 +34,3 @@ func Emit(ctx context.Context, beforeCondition *apis.Condition, afterCondition * k8sevent.EmitK8sEvents(ctx, beforeCondition, afterCondition, object) cloudevent.EmitCloudEventsWhenConditionChange(ctx, beforeCondition, afterCondition, object) } -