From 0a65ecd96dec55d1cbdfe208084ce766cb44dabd Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Fri, 3 Feb 2023 09:54:05 +0000 Subject: [PATCH] Remove unnecessary code --- lib/src/doc/event.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/src/doc/event.rs b/lib/src/doc/event.rs index e6556c21..34fa35fb 100644 --- a/lib/src/doc/event.rs +++ b/lib/src/doc/event.rs @@ -41,8 +41,6 @@ impl<'a> Document<'a> { ctx.add_value("value".into(), self.current.deref()); ctx.add_value("after".into(), self.current.deref()); ctx.add_value("before".into(), self.initial.deref()); - // Ensure event queries run - let opt = &opt.perms(false); // Process conditional clause let val = ev.when.compute(&ctx, opt, txn, Some(&self.current)).await?; // Execute event if value is truthy