mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-16 10:33:11 -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 {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if len(outputEvents) == 0 {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
return r.OutputProducer.ProduceRoomEvents(event.RoomID(), outputEvents)
|
return r.OutputProducer.ProduceRoomEvents(event.RoomID(), outputEvents)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -231,9 +228,6 @@ func (r *RoomserverInternalAPI) PerformInvite(
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if len(outputEvents) == 0 {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
return r.OutputProducer.ProduceRoomEvents(req.Event.RoomID(), outputEvents)
|
return r.OutputProducer.ProduceRoomEvents(req.Event.RoomID(), outputEvents)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue