Skip to content

Commit 0675e3b

Browse files
committed
undo the link
1 parent 83405a7 commit 0675e3b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/internal/fs/promises.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -558,11 +558,9 @@ async function readFileHandle(filehandle, options) {
558558
)) ?? 0;
559559
totalRead += bytesRead;
560560

561-
if (
562-
bytesRead === 0 ||
561+
if (bytesRead === 0 ||
563562
totalRead === size ||
564-
(bytesRead !== buffer.length && !chunkedRead && !noSize)
565-
) {
563+
(bytesRead !== buffer.length && !chunkedRead && !noSize)) {
566564
const singleRead = bytesRead === totalRead;
567565

568566
const bytesToCheck = chunkedRead ? totalRead : bytesRead;

0 commit comments

Comments
 (0)