mirror of
https://github.com/vale981/tridactyl
synced 2025-03-06 01:51:40 -05:00
Make the linter happy
This commit is contained in:
parent
c822a233de
commit
27303b0985
1 changed files with 1 additions and 3 deletions
|
@ -180,9 +180,7 @@ export function flatten(arr) {
|
|||
export function* drop(iterable, predicate) {
|
||||
let allmatched = true
|
||||
for (const elem of iterable) {
|
||||
if (allmatched && predicate(elem)) {
|
||||
continue
|
||||
} else {
|
||||
if (!(allmatched && predicate(elem))) {
|
||||
allmatched = false
|
||||
yield elem
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue