mirror of
https://github.com/vale981/tridactyl
synced 2025-03-06 01:51:40 -05:00
Remove unnecessary type assertion
This commit is contained in:
parent
85cf5ae291
commit
d2ae4a2293
1 changed files with 1 additions and 3 deletions
|
@ -279,9 +279,7 @@ async function history(n) {
|
||||||
|
|
||||||
// Check for matches in history, removing duplicates
|
// Check for matches in history, removing duplicates
|
||||||
const matches = R.reverse(
|
const matches = R.reverse(
|
||||||
// for some reason ramda loses the type information here
|
R.uniq(R.reverse(await State.getAsync("cmdHistory"))),
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
|
||||||
R.uniq(R.reverse((await State.getAsync("cmdHistory")) as string[])),
|
|
||||||
).filter(key => key.startsWith(HISTORY_SEARCH_STRING))
|
).filter(key => key.startsWith(HISTORY_SEARCH_STRING))
|
||||||
if (commandline_state.cmdline_history_position === 0) {
|
if (commandline_state.cmdline_history_position === 0) {
|
||||||
cmdline_history_current = commandline_state.clInput.value
|
cmdline_history_current = commandline_state.clInput.value
|
||||||
|
|
Loading…
Add table
Reference in a new issue