rm for ... in

This commit is contained in:
2026-01-19 18:56:54 -06:00
parent 9b3891c126
commit ff18682485
17 changed files with 72 additions and 575 deletions

View File

@@ -166,26 +166,26 @@ function check_link_cycles() {
return null
}
for (var origin in links) {
arrfor(links, function(origin) {
var cycle_start = follow_chain(origin, {})
if (cycle_start) {
add_error("Link cycle detected starting from: " + origin)
}
}
})
}
// Check for dangling links
function check_dangling_links() {
var links = link.load()
for (var origin in links) {
arrfor(array(links), function(origin) {
var target = links[origin]
if (starts_with(target, '/')) {
if (!fd.is_dir(target)) {
add_error("Dangling link: " + origin + " -> " + target + " (target does not exist)")
}
}
}
})
}
// Gather packages to verify