Skip to content

Commit 2036e4a

Browse files
committed
fs: remove redundant readFile callback in test for large files
1 parent 8dce6dc commit 2036e4a

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

lib/internal/fs/promises.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ const {
4646
},
4747
} = require('internal/errors');
4848
const { isArrayBufferView } = require('internal/util/types');
49+
4950
const {
5051
constants: {
5152
kIoMaxLength,

test/parallel/test-fs-readfile.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,6 @@ for (const e of fileInfo) {
6464
const file = path.join(tmpdir.path, 'temp-large-file.txt');
6565
fs.writeFileSync(file, Buffer.alloc(1024));
6666
fs.truncateSync(file, kLargeFileSize);
67-
68-
fs.readFile(file, (err, data) => {
69-
if (err) {
70-
console.error('Error reading file:', err);
71-
} else {
72-
console.log('File read successfully:', data.length);
73-
}
74-
});
7567
}
7668
}
7769
{

0 commit comments

Comments
 (0)