We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83405a7 commit 0675e3bCopy full SHA for 0675e3b
lib/internal/fs/promises.js
@@ -558,11 +558,9 @@ async function readFileHandle(filehandle, options) {
558
)) ?? 0;
559
totalRead += bytesRead;
560
561
- if (
562
- bytesRead === 0 ||
+ if (bytesRead === 0 ||
563
totalRead === size ||
564
- (bytesRead !== buffer.length && !chunkedRead && !noSize)
565
- ) {
+ (bytesRead !== buffer.length && !chunkedRead && !noSize)) {
566
const singleRead = bytesRead === totalRead;
567
568
const bytesToCheck = chunkedRead ? totalRead : bytesRead;
0 commit comments