Skip to content

Commit 537b8ab

Browse files
committed
fix(scripts): assert in-bounds mock turn lookup in GSAR demo
1 parent 099435a commit 537b8ab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎scripts/demo-gsar-algebra.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ type MockTurn = {
9393

9494
async function mockComplete(turns: MockTurn[], turn: number): Promise<MockTurn> {
9595
await sleep(120); // simulate latency
96-
return turns[Math.min(turn - 1, turns.length - 1)];
96+
return turns[Math.min(turn - 1, turns.length - 1)]!;
9797
}
9898

9999
// ─── Scenario runner ─────────────────────────────────────────────────────────

0 commit comments

Comments
 (0)