Skip to content

Commit c3934c0

Browse files
committed
lint
Signed-off-by: Jeromy Cannon <[email protected]>
1 parent 860e4b5 commit c3934c0

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/core/k8.mjs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -579,16 +579,15 @@ export class K8 {
579579
let additionalErrorMessageDetail = ''
580580

581581
// Use pipe() to automatically handle backpressure between streams
582-
outputPassthroughStream.pipe(outputFileStream);
582+
outputPassthroughStream.pipe(outputFileStream)
583583

584584
outputPassthroughStream.on('data', (chunk) => {
585-
const canWrite = outputFileStream.write(chunk); // Write chunk to file and check if buffer is full
585+
const canWrite = outputFileStream.write(chunk) // Write chunk to file and check if buffer is full
586586

587587
if (!canWrite) {
588-
console.log(`Buffer is full, pausing data stream... for copying from ${podName}:${srcDir}/${srcFile} to ${destPath}`);
589-
outputPassthroughStream.pause(); // Pause the data stream if buffer is full
588+
console.log(`Buffer is full, pausing data stream... for copying from ${podName}:${srcDir}/${srcFile} to ${destPath}`)
589+
outputPassthroughStream.pause() // Pause the data stream if buffer is full
590590
}
591-
592591
})
593592

594593
outputFileStream.on('drain', () => {
@@ -663,7 +662,6 @@ export class K8 {
663662

664663
outputFileStream.on('error', (err) => {
665664
return reject(new FullstackTestingError(`writerStream error encountered copying from ${podName}:${srcDir}/${srcFile} to ${destPath}, err: ${err.toString()}`, err))
666-
667665
})
668666

669667
outputFileStream.on('end', () => {

0 commit comments

Comments
 (0)