0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 10:12:39 +01:00

ircd:Ⓜ️:get: Fix false assertion when no result.

This commit is contained in:
Jason Volk 2019-09-22 21:13:45 -07:00
parent 16d45ef8d5
commit f9e5ece672

View file

@ -71,6 +71,6 @@ ircd::m::get(const event::idx &event_idx,
get(std::nothrow, event_idx, key, buf)
};
assert(size(rbuf) >= sizeof(T));
assert(empty(rbuf) || size(rbuf) >= sizeof(T));
return !empty(rbuf);
}