Skip to content

Commit a97bff0

Browse files
committed
fixup: lint
1 parent 3d0d042 commit a97bff0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/internal/streams/pipeline.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
const {
77
ArrayIsArray,
88
Promise,
9-
MathMax,
109
SymbolAsyncIterator,
1110
} = primordials;
1211

@@ -322,7 +321,7 @@ function pipelineImpl(streams, callback, opts) {
322321
return ret;
323322
}
324323

325-
function pipe (src, dst) {
324+
function pipe(src, dst) {
326325
if (typeof src.read !== 'function') {
327326
src.pipe(dst);
328327
return;
@@ -334,7 +333,7 @@ function pipe (src, dst) {
334333
dst
335334
.on('drain', pump);
336335

337-
function end () {
336+
function end() {
338337
dst.end();
339338
}
340339

@@ -345,13 +344,14 @@ function pipe (src, dst) {
345344
dst._writableState?.objectMode
346345
);
347346

348-
function pump () {
347+
function pump() {
349348
if (dst.writableNeedDrain) {
350349
return;
351350
}
352351

353352
while (true) {
354-
const chunk = src.read((!objectMode && dst.writableHighwaterMark) || undefined);
353+
const n = (!objectMode && dst.writableHighwaterMark) || undefined;
354+
const chunk = src.read(n);
355355
if (chunk === null || !dst.write(chunk)) {
356356
return;
357357
}

0 commit comments

Comments
 (0)