Skip to content

Commit 29926a3

Browse files
committed
chore: remove unnecessary test
1 parent 410391c commit 29926a3

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/index.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,16 +85,13 @@ function asyncIteratorToStream(iterable, options) {
8585
(value = cursor.value) != null &&
8686
typeof value.then === "function"
8787
) {
88-
let success = false;
8988
try {
9089
value = await value;
91-
success = true;
9290
} catch (error) {
9391
cursor = iterator.throw(error);
92+
continue
9493
}
95-
if (success) {
96-
cursor = iterator.next(value);
97-
}
94+
cursor = iterator.next(value);
9895
}
9996
}
10097

0 commit comments

Comments
 (0)