Make the linter happy

This commit is contained in:
Saul Reynolds-Haertle 2019-05-04 14:45:04 -07:00
parent c822a233de
commit 27303b0985

View file

@ -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
}