mirror of
https://github.com/matrix-construct/construct
synced 2024-12-28 00:14:07 +01:00
modules/m_room: Simplify: use existing api.
This commit is contained in:
parent
4ce29f1d22
commit
628f589988
1 changed files with 1 additions and 5 deletions
|
@ -271,11 +271,7 @@ dagree_histogram(const m::room &room,
|
|||
for(; it; --it)
|
||||
{
|
||||
const m::event event{*it};
|
||||
const size_t num
|
||||
{
|
||||
size(json::get<"prev_events"_>(event))
|
||||
};
|
||||
|
||||
const size_t num{degree(event)};
|
||||
if(unlikely(num >= vec.size()))
|
||||
{
|
||||
log::warning
|
||||
|
|
Loading…
Reference in a new issue