mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 23:44:01 +01:00
ircd:Ⓜ️:get: Fix false assertion when no result.
This commit is contained in:
parent
16d45ef8d5
commit
f9e5ece672
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue