Add missing return for error in custodial handler event
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user