Skip to content

Commit ff0137f

Browse files
committed
lint
1 parent 7fbb376 commit ff0137f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/internal/fs/promises.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -526,9 +526,9 @@ async function readFileHandle(filehandle, options) {
526526

527527
if (size > kIoMaxLength) {
528528
process.emitWarning(
529-
`Detected \`fs.readFile()\` to read a huge file in memory (${size} bytes). Please consider using \`fs.createReadStream()\` instead to minimize memory overhead and increase the performance.`,
530-
'LargeFileWarning',
531-
ERR_FS_FILE_TOO_LARGE
529+
`Detected \`fs.readFile()\` to read a huge file in memory (${size} bytes). Please consider using \`fs.createReadStream()\` instead to minimize memory overhead and increase the performance.`,
530+
'LargeFileWarning',
531+
ERR_FS_FILE_TOO_LARGE,
532532
);
533533
}
534534

0 commit comments

Comments
 (0)