From 4c5f896ecf2e55840bc8b8dbba9ab099ab860e9b Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Mon, 22 Feb 2021 21:04:19 +0100 Subject: [PATCH] Tighten --- actor.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/actor.ts b/actor.ts index 27a8a69..6112224 100644 --- a/actor.ts +++ b/actor.ts @@ -140,9 +140,8 @@ export class Turn { } sync(location: Ref): Promise { - return new Promise(resolve => { - this.enqueue(location.actor, t => location.sync(t, this.ref(resolve, "sync"))); - }); + return new Promise(resolve => + this.enqueue(location.actor, t => location.sync(t, this.ref(resolve, "sync")))); } message(location: Ref, assertion: Assertion): void {