From 6d849b5adc2ca003fc876a1e38b6a8179e6ba574 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sat, 27 Apr 2019 20:01:27 -0700 Subject: [PATCH] modules/vm: Minor cleanup. --- modules/vm.cc | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/modules/vm.cc b/modules/vm.cc index 0fb5696c1..7ba0aba77 100644 --- a/modules/vm.cc +++ b/modules/vm.cc @@ -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)