Skip to content

Commit

Permalink
refactor: remove objectMode argument as it is ignored by Duplex.from (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
10xLaCroixDrinker committed Mar 20, 2024
1 parent e9b2558 commit 0ddd7ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ module.exports = function build (fn, opts = {}) {
// set it to null to not retain a reference to the promise
res = null
} else if (opts.enablePipelining && res) {
return Duplex.from({ writable: stream, readable: res, objectMode: true })
return Duplex.from({ writable: stream, readable: res })
}

return stream
Expand Down

0 comments on commit 0ddd7ff

Please sign in to comment.