Skip to content

Commit ccbe267

Browse files
bnoordhuisdanielleadams
authored andcommitted
fs: remove unnecessary Function#bind() in fs/promises
PR-URL: #35208 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Masashi Hirano <shisama07@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent 9e67372 commit ccbe267

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/internal/fs/promises.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ async function rename(oldPath, newPath) {
431431

432432
asyncfunctiontruncate(path,len=0){
433433
constfd=awaitopen(path,'r+');
434-
returnftruncate(fd,len).finally(fd.close.bind(fd));
434+
returnftruncate(fd,len).finally(fd.close);
435435
}
436436

437437
asyncfunctionftruncate(handle,len=0){

0 commit comments

Comments
 (0)