correct syntax errors in core scripts

This commit is contained in:
2026-02-15 22:23:04 -06:00
parent 913ec9afb1
commit 8f92870141
12 changed files with 93 additions and 56 deletions

View File

@@ -143,6 +143,9 @@ arrfor(roots, function(root) {
})
// Output based on format
var children = null
var j = 0
var output = null
if (format == 'tree') {
function print_tree(locator, prefix, is_last, visited) {
var node = null
@@ -178,8 +181,6 @@ if (format == 'tree') {
}
}
var children = null
var j = 0
for (i = 0; i < length(roots); i++) {
log.console(roots[i])
@@ -230,7 +231,7 @@ if (format == 'tree') {
log.console("}")
} else if (format == 'json') {
var output = {
output = {
nodes: [],
edges: []
}