| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -431,7 +431,7 @@ async function rename(oldPath, newPath) { | |||
| 431 | 431 | ||
| 432 | 432 | async function truncate(path, len = 0) { | |
| 433 | 433 | const fd = await open(path, 'r+'); | |
| 434 | - return ftruncate(fd, len).finally(fd.close.bind(fd)); | ||
| 434 | + return ftruncate(fd, len).finally(fd.close); | ||
| 435 | 435 | } | |
| 436 | 436 | ||
| 437 | 437 | async function ftruncate(handle, len = 0) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments