mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 15:33:54 +01:00
modules/vm: Minor cleanup.
This commit is contained in:
parent
010790550d
commit
6d849b5adc
1 changed files with 5 additions and 6 deletions
|
@ -717,12 +717,11 @@ ircd::m::vm::execute_pdu(eval &eval,
|
|||
fault::EXISTS, "Event has already been evaluated."
|
||||
};
|
||||
|
||||
if(opts.verify)
|
||||
if(!verify(event))
|
||||
throw m::BAD_SIGNATURE
|
||||
{
|
||||
"Signature verification failed"
|
||||
};
|
||||
if(opts.verify && !verify(event))
|
||||
throw m::BAD_SIGNATURE
|
||||
{
|
||||
"Signature verification failed"
|
||||
};
|
||||
|
||||
// Fetch dependencies
|
||||
if(opts.fetch)
|
||||
|
|
Loading…
Reference in a new issue