Skip to content

Commit 447a895

Browse files
author
David Mark Clements
committed
streams: Transform.by, rm unncessary check
1 parent b504b15 commit 447a895

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

lib/_stream_transform.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,6 @@ function SourceIterator(asyncGeneratorFn, opts) {
264264
this[kSourceIteratorResolve] = resolve;
265265
};
266266
const first = iter.next();
267-
if (!first || typeof first.then !== 'function') {
268-
throw new ERR_ARG_RETURN_VALUE_NOT_ASYNC_ITERABLE('asyncGeneratorFn');
269-
}
270267
this[kSourceIteratorPump](iter, first);
271268
}
272269

0 commit comments

Comments
 (0)