Skip to content

Commit 363456f

Browse files
author
Austin Hallock
committed
fix len=0 pull bug EvanOxfeld#10
1 parent 8712f26 commit 363456f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pullstream.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ PullStream.prototype.pullUpTo = over([
6161

6262
PullStream.prototype.pipe = over([
6363
[over.numberOptionalWithDefault(null), over.object, function (len, destStream) {
64-
if (!len) {
64+
if (typeof len !== 'undefined') {
6565
return PassThrough.prototype.pipe.call(this, destStream);
6666
}
6767

0 commit comments

Comments
 (0)