Remove unnecessary code

This commit is contained in:
Tobie Morgan Hitchcock 2023-02-03 09:54:05 +00:00
parent b0c2fe8f03
commit 0a65ecd96d

View file

@ -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