0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-26 08:42:34 +01:00

ircd:Ⓜ️:vm::eval: Remove the size-one array branch.

This commit is contained in:
Jason Volk 2019-07-11 16:55:07 -07:00
parent 88bd487d5d
commit 628766f6fa

View file

@ -1548,12 +1548,6 @@ ircd::m::vm::eval::eval(const json::array &pdus,
const vm::opts &opts)
:opts{&opts}
{
if(pdus.size() == 1)
{
operator()(m::event(pdus.at(0)));
return;
}
// Sort the events first to avoid complicating the evals; the events might
// be from different rooms but it doesn't matter.
std::vector<m::event> events(begin(pdus), end(pdus));