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:
parent
c718d348cb
commit
f02b51d647
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue