From 701bedc1ebb60670981591002aca57fb3d0ff128 Mon Sep 17 00:00:00 2001 From: EmmaYuan1015 Date: Mon, 22 Jun 2026 13:59:20 +0800 Subject: [PATCH] Use nullish coalescing for wait default --- src/common/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/utils.ts b/src/common/utils.ts index 74f318277..0084ecebd 100644 --- a/src/common/utils.ts +++ b/src/common/utils.ts @@ -89,7 +89,7 @@ export function stripJsonTrailingComma(str: string): any { } export async function wait(time?: number): Promise { - const times = time ? time : 2000; + const times = time ?? 2000; await new Promise(resolve => { const timer = setTimeout(() => { clearTimeout(timer);