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