Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2020-07-21 22:50:39 +01:00
parent fd869b20fa
commit a0e7efd7d5

View file

@ -257,11 +257,10 @@ export async function downloadBugReport(opts) {
// Source: https://github.com/beatgammit/tar-js/blob/master/examples/main.js // Source: https://github.com/beatgammit/tar-js/blob/master/examples/main.js
function uint8ToString(buf: Buffer) { function uint8ToString(buf: Buffer) {
let i, length, out = ''; let out = '';
for (i = 0, length = buf.length; i < length; i += 1) { for (let i = 0; i < buf.length; i += 1) {
out += String.fromCharCode(buf[i]); out += String.fromCharCode(buf[i]);
} }
return out; return out;
} }