0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-02 10:08:56 +02:00

ircd::mods: Avoid npd warning from assertions.

This commit is contained in:
Jason Volk 2019-07-07 23:13:39 -07:00
parent c718d348cb
commit f02b51d647

View file

@ -875,9 +875,7 @@ try
std::make_shared<mod>(std::move(path), flags)
};
assert(ret);
assert(ret->header);
assert(ret->header->meta);
assert(ret != nullptr && ret->header && ret->header->meta);
if(!ret || !ret->header)
throw panic
{