0
0
Fork 0
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:
Jason Volk 2018-05-24 03:46:54 -07:00
parent 4ce29f1d22
commit 628f589988

View file

@ -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