Remove redundant logic

This commit is contained in:
Devon Hudson 2023-05-19 15:14:06 -06:00
parent 94cebe28d8
commit 822b5c8b18
No known key found for this signature in database
GPG key ID: CD06B18E77F6A628

View file

@ -217,9 +217,6 @@ func (r *RoomserverInternalAPI) HandleInvite(
if err != nil {
return err
}
if len(outputEvents) == 0 {
return nil
}
return r.OutputProducer.ProduceRoomEvents(event.RoomID(), outputEvents)
}
@ -231,9 +228,6 @@ func (r *RoomserverInternalAPI) PerformInvite(
if err != nil {
return err
}
if len(outputEvents) == 0 {
return nil
}
return r.OutputProducer.ProduceRoomEvents(req.Event.RoomID(), outputEvents)
}