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 {