From f0c1c8665e696161298444a920e82a7f38c2a6dd Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Tue, 23 Feb 2021 11:15:18 +0100 Subject: [PATCH] Tighten --- actor.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/actor.ts b/actor.ts index c4f65f0..97c89e8 100644 --- a/actor.ts +++ b/actor.ts @@ -124,9 +124,8 @@ export class Turn { }); } - sync(location: Ref): Promise { - return new Promise(resolve => - this.enqueue(location.actor, t => location.sync(t, this.ref(resolve)))); + sync(loc: Ref): Promise { + return new Promise(resolve => this.enqueue(loc.actor, t => loc.sync(t, this.ref(resolve)))); } message(location: Ref, assertion: Assertion): void {