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 d396900 commit f06f3c0Copy full SHA for f06f3c0
lib/internal/fs/promises.js
@@ -431,7 +431,7 @@ async function rename(oldPath, newPath) {
431
432
async function truncate(path, len = 0) {
433
const fd = await open(path, 'r+');
434
- return ftruncate(fd, len).finally(fd.close.bind(fd));
+ return ftruncate(fd, len).finally(fd.close);
435
}
436
437
async function ftruncate(handle, len = 0) {
0 commit comments