Skip to content

Commit

Permalink
fixup! typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jakecastelli committed Jun 1, 2024
1 parent 579d456 commit 616c8d5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/internal/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -1716,7 +1716,7 @@ E('ERR_STREAM_DESTROYED', 'Cannot call %s after a stream was destroyed', Error);
E('ERR_STREAM_NULL_VALUES', 'May not write null values to stream', TypeError);
E('ERR_STREAM_PREMATURE_CLOSE', 'Premature close', Error);
E('ERR_STREAM_PUSH_AFTER_EOF', 'stream.push() after EOF', Error);
E('ERR_STREAM_UNABLE_TO_PIIPE', 'Connot pipe to a closed or destroyed stream', Error);
E('ERR_STREAM_UNABLE_TO_PIPE', 'Connot pipe to a closed or destroyed stream', Error);

Check failure on line 1719 in lib/internal/errors.js

View workflow job for this annotation

GitHub Actions / lint-js-and-md

"ERR_STREAM_UNABLE_TO_PIPE" is not documented in doc/api/errors.md

Check failure on line 1719 in lib/internal/errors.js

View workflow job for this annotation

GitHub Actions / lint-js-and-md

doc/api/errors.md does not have an anchor for "ERR_STREAM_UNABLE_TO_PIPE"
E('ERR_STREAM_UNSHIFT_AFTER_END_EVENT',
'stream.unshift() after end event', Error);
E('ERR_STREAM_WRAP', 'Stream has StringDecoder set or is in objectMode', Error);
Expand Down
4 changes: 2 additions & 2 deletions lib/internal/streams/pipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const {
ERR_MISSING_ARGS,
ERR_STREAM_DESTROYED,
ERR_STREAM_PREMATURE_CLOSE,
ERR_STREAM_UNABLE_TO_PIIPE,
ERR_STREAM_UNABLE_TO_PIPE,
},
} = require('internal/errors');

Expand Down Expand Up @@ -260,7 +260,7 @@ function pipelineImpl(streams, callback, opts) {

if (isNodeStream(stream)) {
if (next !== null && (next?.closed || next?.destroyed)) {
throw new ERR_STREAM_UNABLE_TO_PIIPE();
throw new ERR_STREAM_UNABLE_TO_PIPE();
}

if (end) {
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-stream-pipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ tmpdir.refresh();
const close = promisify(write.close);
await close.call(write);
await pipelinep(read, write);
}, /ERR_STREAM_UNABLE_TO_PIIPE/).then(common.mustCall());
}, /ERR_STREAM_UNABLE_TO_PIPE/).then(common.mustCall());
}

{
Expand Down

0 comments on commit 616c8d5

Please sign in to comment.