Skip to content

Commit 21cb52e

Browse files
committed
Handle streams without a resume method
Closes #9
1 parent a6368ff commit 21cb52e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function fromReadable (stream) {
1515
var promise = toArray(stream)
1616

1717
// Ensure stream is in flowing mode
18-
stream.resume()
18+
if (stream.resume) stream.resume()
1919

2020
return promise
2121
.then(function concat (parts) {

0 commit comments

Comments
 (0)