| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 770cd22 commit 8854183
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -836,6 +836,8 @@ function fromList(n, state) { | |||
| 836 | 836 | // read it all, truncate the array. | |
| 837 | 837 | if (stringMode) | |
| 838 | 838 | ret = list.join(''); | |
| 839 | + else if (list.length === 1) | ||
| 840 | + ret = list[0]; | ||
| 839 | 841 | else | |
| 840 | 842 | ret = Buffer.concat(list, length); | |
| 841 | 843 | list.length = 0; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments