Add missing return for error in custodial handler event

This commit is contained in:
lash 2025-01-13 22:00:20 +00:00
parent 63eb803022
commit f67edfb541
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746

View File

@ -21,7 +21,7 @@ const (
func (eh *EventsUpdater) handleCustodialRegistration(ctx context.Context, ev any) error { func (eh *EventsUpdater) handleCustodialRegistration(ctx context.Context, ev any) error {
o, ok := ev.(*apievent.EventCustodialRegistration) o, ok := ev.(*apievent.EventCustodialRegistration)
if !ok { if !ok {
fmt.Errorf("invalid event for custodial registration") return fmt.Errorf("invalid event for custodial registration")
} }
return eh.HandleCustodialRegistration(ctx, o) return eh.HandleCustodialRegistration(ctx, o)
} }