Rearrange

This commit is contained in:
Tony Garnock-Jones 2021-02-24 22:21:14 +01:00
parent 78662a0d77
commit ec7a816aeb
1 changed files with 5 additions and 5 deletions

View File

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