From ec7a816aeb7a518975fe38a585ec800521b87733 Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Wed, 24 Feb 2021 22:21:14 +0100 Subject: [PATCH] Rearrange --- actor.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/actor.ts b/actor.ts index 5786122..085b7e6 100644 --- a/actor.ts +++ b/actor.ts @@ -130,13 +130,13 @@ export class Turn { assert(ref: Ref, assertion: Assertion): Handle { const h = nextHandle++; - this.enqueue(ref.relay, t => { - const a = runRewrites(ref.attenuation, assertion); - if (a !== null) { + const a = runRewrites(ref.attenuation, assertion); + if (a !== null) { + this.enqueue(ref.relay, t => { this.actor.outbound.set(h, ref); ref.target.assert?.(t, a, h); - } - }); + }); + } return h; }