From f67edfb5411d4e986fc79b79e8637d7e38a5087a Mon Sep 17 00:00:00 2001 From: lash Date: Mon, 13 Jan 2025 22:00:20 +0000 Subject: [PATCH] Add missing return for error in custodial handler event --- handlers/event/custodial.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/event/custodial.go b/handlers/event/custodial.go index 4c0d030..dd51e9b 100644 --- a/handlers/event/custodial.go +++ b/handlers/event/custodial.go @@ -21,7 +21,7 @@ const ( func (eh *EventsUpdater) handleCustodialRegistration(ctx context.Context, ev any) error { o, ok := ev.(*apievent.EventCustodialRegistration) if !ok { - fmt.Errorf("invalid event for custodial registration") + return fmt.Errorf("invalid event for custodial registration") } return eh.HandleCustodialRegistration(ctx, o) }