eslint: Fix unicorn/consistent-assert.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2025-02-26 14:53:53 -08:00
committed by Anders Kaseorg
parent 37c9505a46
commit a309bbe121
7 changed files with 10 additions and 10 deletions

View File

@@ -20,7 +20,7 @@ async function navigate_to_user_list(page: Page): Promise<void> {
async function user_row(page: Page, name: string): Promise<string> {
const user_id = await common.get_user_id_from_name(page, name);
assert(user_id !== undefined);
assert.ok(user_id !== undefined);
return `.user_row[data-user-id="${CSS.escape(user_id.toString())}"]`;
}