Skip to content

Commit 8681fca

Browse files
committed
comments addressed
1 parent 8af83b5 commit 8681fca

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

templates/cli/lib/parser.js.twig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const cliConfig = {
88
json: false
99
};
1010

11-
const parse = (data, child = false) => {
11+
const parse = (data) => {
1212
if (cliConfig.json) {
1313
drawJSON(data);
1414
return;
@@ -24,13 +24,13 @@ const parse = (data, child = false) => {
2424
}
2525
} else if (typeof data[key] === 'object') {
2626
if (data[key] && data[key].constructor?.name === 'BigNumber') {
27-
console.log(`${child ? ' ' : ''}${chalk.yellow.bold(key)} : ${data[key]}`);
27+
console.log(`${chalk.yellow.bold(key)} : ${data[key]}`);
2828
} else {
2929
console.log(`${chalk.yellow.bold.underline(key)}`)
30-
parse(data[key], true);
30+
drawTable(data[key]);
3131
}
3232
} else {
33-
console.log(`${child ? ' ' : ''}${chalk.yellow.bold(key)} : ${data[key]}`);
33+
console.log(`${chalk.yellow.bold(key)} : ${data[key]}`);
3434
}
3535
}
3636
}

0 commit comments

Comments
 (0)