From edfc38f8116bb8c33de74405580962626cc79f14 Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Tue, 23 Feb 2021 09:42:10 +0100 Subject: [PATCH] Tighten --- actor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actor.ts b/actor.ts index 5589333..c0f3b8d 100644 --- a/actor.ts +++ b/actor.ts @@ -142,7 +142,7 @@ export class Turn { } enqueue(actor: Actor, a: LocalAction): void { - this.queues.has(actor) ? this.queues.get(actor)!.push(a) : this.queues.set(actor, [a]); + this.queues.get(actor)?.push(a) ?? this.queues.set(actor, [a]); } complete(): void {