0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 18:22:50 +01:00

ircd:Ⓜ️:push: Fix stale assertion.

This commit is contained in:
Jason Volk 2020-03-22 18:01:33 -07:00
parent 41a3040084
commit 7ca990e1ee

View file

@ -102,7 +102,7 @@ ircd::m::push::match::match(const event &event,
indexof(kind, string_views(cond_kind_name))
};
assert(pos <= 5);
assert(pos <= sizeof(cond_kind_name) / sizeof(string_view));
const auto &func
{
cond_kind[pos]