| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 9b104b4 commit 956a473
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -35,9 +35,9 @@ const message = 'Large File'; | |||
| 35 | 35 | ||
| 36 | 36 | fs.truncateSync(fd, offset); | |
| 37 | 37 | assert.strictEqual(fs.statSync(filepath).size, offset); | |
| 38 | - var writeBuf = Buffer.from(message); | ||
| 38 | + const writeBuf = Buffer.from(message); | ||
| 39 | 39 | fs.writeSync(fd, writeBuf, 0, writeBuf.length, offset); | |
| 40 | - var readBuf = Buffer.allocUnsafe(writeBuf.length); | ||
| 40 | + const readBuf = Buffer.allocUnsafe(writeBuf.length); | ||
| 41 | 41 | fs.readSync(fd, readBuf, 0, readBuf.length, offset); | |
| 42 | 42 | assert.strictEqual(readBuf.toString(), message); | |
| 43 | 43 | fs.readSync(fd, readBuf, 0, 1, 0); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments