| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 6264ac1 commit e582832
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -311,7 +311,7 @@ async function readFileHandle(filehandle, options) { | |||
| 311 | 311 | chunks.push(buffer.slice(0, bytesRead)); | |
| 312 | 312 | } while (!endOfFile); | |
| 313 | 313 | ||
| 314 | - const result = Buffer.concat(chunks); | ||
| 314 | + const result = chunks.length === 1 ? chunks[0] : Buffer.concat(chunks); | ||
| 315 | 315 | ||
| 316 | 316 | return options.encoding ? result.toString(options.encoding) : result; | |
| 317 | 317 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments