Remove unnecessary type assertion in src/content/hinting.ts

Co-authored-by: Rummskartoffel <20257197+Rummskartoffel@users.noreply.github.com>
This commit is contained in:
Vincent Tavernier 2021-04-05 19:41:15 +02:00 committed by Oliver Blanthorn
parent d1e43996d4
commit d0b5e74021
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3

View file

@ -1113,8 +1113,7 @@ export function hintByTextFilter(match: string | RegExp): HintSelectedCallback {
return hint => {
let text
if (hint instanceof HTMLInputElement) {
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
text = (hint as HTMLInputElement).value
text = hint.value
} else {
text = hint.textContent
}