Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed Jun 18, 2021
1 parent 8910baf commit ab8b4ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doc/api/stream.md
Expand Up @@ -3172,7 +3172,7 @@ async function * generate() {
const readable = Readable.from(generate());
readable.on('close', () => {
ac.abort();
})
});

readable.on('data', (chunk) => {
console.log(chunk);
Expand Down
4 changes: 2 additions & 2 deletions test/parallel/test-stream-pipeline.js
Expand Up @@ -11,7 +11,7 @@ const {
Duplex,
addAbortSignal,
} = require('stream');
const pipelinep = require('stream/promises').pipeline
const pipelinep = require('stream/promises').pipeline;
const assert = require('assert');
const http = require('http');
const { promisify } = require('util');
Expand Down Expand Up @@ -1430,7 +1430,7 @@ const tsp = require('timers/promises');
async function * (signal) {
await tsp.setTimeout(1e6, signal);
},
async function (source) {
async function(source) {

},
{ signal }
Expand Down

0 comments on commit ab8b4ea

Please sign in to comment.