Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply suggestions from code review
Co-authored-by: Michaël Zasso <targos@protonmail.com>
  • Loading branch information
ronag and targos authored Jul 13, 2021
commit 87302f01b8d372ddf5cc1588a09353f56d2cbe4f
4 changes: 2 additions & 2 deletions lib/internal/streams/compose.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ module.exports = function compose(...streams) {

for (let n = 0; n < streams.length; ++n) {
if (!isNodeStream(streams[n])) {
// TODO (ronag): Add checks for non streams.
// TODO(ronag): Add checks for non streams.
continue;
}
if (n < streams.length - 1 && !isReadable(streams[n])) {
Expand Down Expand Up @@ -113,7 +113,7 @@ module.exports = function compose(...streams) {
const writable = !!isWritable(head);
const readable = !!isReadable(tail);

// TODO (ronag): Avoid double buffering.
// TODO(ronag): Avoid double buffering.
// Implement Writable/Readable/Duplex traits.
// See, https://github.com/nodejs/node/pull/33515.
d = new ComposeDuplex({
Expand Down
2 changes: 1 addition & 1 deletion lib/stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Stream.finished = eos;
Stream.destroy = destroyer;

Stream.compose = function(...streams) {
Comment thread
ronag marked this conversation as resolved.
Outdated
// TODO (ronag): Remove this once async function API
// TODO(ronag): Remove this once async function API
// has been discussed.
for (let n = 0; n < streams.length; ++n) {
if (!isNodeStream(streams[n])) {
Expand Down