Skip to content

Commit 51243ce

Browse files
authored
Update merge.ts
1 parent 8f1cafd commit 51243ce

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/asynciterable/merge.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,8 @@ export class MergeAsyncIterable<T> extends AsyncIterableX<T> {
4242
nexts[index] = <Promise<MergeResult<IteratorResult<T>>>>NEVER_PROMISE;
4343
active--;
4444
} else {
45-
const iterator$ = iterators[index];
46-
nexts[index] = <Promise<MergeResult<IteratorResult<T>>>>NEVER_PROMISE;
4745
yield value$;
46+
const iterator$ = iterators[index];
4847
nexts[index] = wrapPromiseWithIndex(iterator$.next(), index);
4948
}
5049
}

0 commit comments

Comments
 (0)