Skip to content

Commit fab698d

Browse files
mertmertcanaltin
authored andcommitted
revert lint
1 parent 4e6fa90 commit fab698d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/internal/fs/promises.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -550,8 +550,8 @@ async function readFileHandle(filehandle, options) {
550550
totalRead += bytesRead;
551551

552552
if (bytesRead === 0 ||
553-
totalRead === size ||
554-
(bytesRead !== buffer.length && !chunkedRead && !noSize)) {
553+
totalRead === size ||
554+
(bytesRead !== buffer.length && !chunkedRead && !noSize)) {
555555
const singleRead = bytesRead === totalRead;
556556

557557
const bytesToCheck = chunkedRead ? totalRead : bytesRead;
@@ -574,11 +574,9 @@ async function readFileHandle(filehandle, options) {
574574
result += decoder.end(buffer);
575575
return result;
576576
}
577-
578577
const readBuffer = bytesRead !== buffer.length ?
579578
buffer.subarray(0, bytesRead) :
580579
buffer;
581-
582580
if (encoding) {
583581
result += decoder.write(readBuffer);
584582
} else if (size !== 0) {
@@ -587,7 +585,6 @@ async function readFileHandle(filehandle, options) {
587585
buffers ??= [];
588586
// Unknown file size requires chunks.
589587
ArrayPrototypePush(buffers, readBuffer);
590-
591588
buffer = Buffer.allocUnsafeSlow(kReadFileUnknownBufferLength);
592589
}
593590
}

0 commit comments

Comments
 (0)