mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-11 16:13:10 -06:00
Remove redundant logic
This commit is contained in:
parent
94cebe28d8
commit
822b5c8b18
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue