eslint: Fix @typescript-eslint/no-unnecessary-type-assertion.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2024-01-29 11:25:11 -08:00
committed by Tim Abbott
parent 04013cdec1
commit 2dca29ce5a
2 changed files with 3 additions and 3 deletions

View File

@@ -196,7 +196,7 @@ export async function check_form_contents(
}
export async function get_element_text(element: ElementHandle): Promise<string> {
const text = await (await element.getProperty("innerText"))!.jsonValue();
const text = await (await element.getProperty("innerText")).jsonValue();
assert.ok(typeof text === "string");
return text;
}