Skip to content

Commit 540acfc

Browse files
committed
Fix String check
1 parent c81554a commit 540acfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Node/Stream.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ exports.onDataEitherImpl = function(left){
2121
if (chunk instanceof Buffer) {
2222
f(right(chunk))();
2323
}
24-
else if (chunk instanceof String) {
24+
else if (typeof chunk === "string") {
2525
f(left(chunk))();
2626
}
2727
else {

0 commit comments

Comments
 (0)