commit 784dd6e5475f4df4633d2146b3fee443cadd766d
parent d29b206534570cd9108c9a8f60c30e345fec39ce
Author: Sebastian <sebastian@sebsite.pw>
Date: Fri, 8 Sep 2023 00:22:20 -0400
hare deps: remove always true condition
Signed-off-by: Sebastian <sebastian@sebsite.pw>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmd/hare/deps.ha b/cmd/hare/deps.ha
@@ -84,7 +84,7 @@ fn deps_graph(mods: *[]module::module) void = {
defer free(links);
let depth: []uint = alloc([0...], len(mods));
// traverse in reverse because reverse-topo-sort
- for (let i = len(mods) - 1; 0 <= i && i < len(mods); i -= 1) {
+ for (let i = len(mods) - 1; i < len(mods); i -= 1) {
// reverse-sort deps so that we know the last in the list is the
// "final" child during show_deps
sort::sort(mods[i].deps, size((size, ast::ident)), &revsort);