Skip to content

Commit 91eb034

Browse files
committed
tweak branches
1 parent 5eee87c commit 91eb034

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/execution/mapAsyncIterable.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,12 @@ export function mapAsyncIterable<T, U, R = undefined>(
5959
async throw(error?: unknown) {
6060
if (typeof iterator.throw === 'function') {
6161
return mapResult(iterator.throw(error));
62-
} else if (typeof iterator.return === 'function') {
62+
}
63+
64+
if (typeof iterator.return === 'function') {
6365
await returnIgnoringErrors();
64-
throw error;
6566
}
67+
6668
throw error;
6769
},
6870
[Symbol.asyncIterator]() {

0 commit comments

Comments
 (0)