Skip to content

Commit 6c67744

Browse files
committed
fix: trimStart is apparently too new
1 parent f083b96 commit 6c67744

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/superblocktxt.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,17 @@ module.exports = (dirpath) => {
2525
symLinks[lstat.dev][lstat.ino] = true
2626
}
2727
let mode = lstat.mode.toString(8);
28-
str += `\n${"\t".repeat(indent)}`
28+
str += `${"\t".repeat(indent)}`
2929
if (lstat.isDirectory()) {
30-
str += `${file}\t${mode}`;
30+
str += `${file}\t${mode}\n`;
3131
printTree(fpath, indent + 1);
3232
} else {
33-
str += `${file}\t${mode}\t${lstat.size}\t${lstat.mtimeMs}`;
33+
str += `${file}\t${mode}\t${lstat.size}\t${lstat.mtimeMs}\n`;
3434
}
3535
}
3636
};
3737
printTree(dirpath, 0);
38-
return str.trimStart() + '\n';
38+
return str;
3939
}
4040

4141
if (!module.parent) {

0 commit comments

Comments
 (0)