even more constness
This commit is contained in:
+1
-1
@@ -140,7 +140,7 @@ function createTree(root, obj) {
|
||||
fs.mkdirSync(root, { recursive: true });
|
||||
|
||||
function createSubTree(tree, curpath) {
|
||||
for (var key in tree) {
|
||||
for (const key in tree) {
|
||||
if (typeof tree[key] === 'string') {
|
||||
if (key.startsWith('link:')) {
|
||||
fs.symlinkSync(tree[key], path.join(curpath, key.slice(5)));
|
||||
|
||||
Reference in New Issue
Block a user