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) }