mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 17:41:40 -05:00
Remove unnecessary type assertion in src/content/hinting.ts
Co-authored-by: Rummskartoffel <20257197+Rummskartoffel@users.noreply.github.com>
This commit is contained in:
parent
d1e43996d4
commit
d0b5e74021
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue