From e87e6dabfbdc1d35b5fe41b5d84dab38df3c8e76 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 6 Apr 2025 16:49:40 -0400 Subject: Insert `then` for clarity --- examples/tomodeps/tomodeps.tm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/tomodeps/tomodeps.tm') diff --git a/examples/tomodeps/tomodeps.tm b/examples/tomodeps/tomodeps.tm index 1aafa6bd..1181f2be 100644 --- a/examples/tomodeps/tomodeps.tm +++ b/examples/tomodeps/tomodeps.tm @@ -74,13 +74,13 @@ func _printable_name(dep:Dependency -> Text) func _draw_tree(dep:Dependency, dependencies:{Dependency=|Dependency|}, already_printed:@|Dependency|, prefix="", is_last=yes) if already_printed.has(dep) - say(prefix ++ (if is_last "└── " else "├── ") ++ _printable_name(dep) ++ " $\x1b[2m(recursive)$\x1b[m") + say(prefix ++ (if is_last then "└── " else "├── ") ++ _printable_name(dep) ++ " $\x1b[2m(recursive)$\x1b[m") return - say(prefix ++ (if is_last "└── " else "├── ") ++ _printable_name(dep)) + say(prefix ++ (if is_last then "└── " else "├── ") ++ _printable_name(dep)) already_printed.add(dep) - child_prefix := prefix ++ (if is_last " " else "│ ") + child_prefix := prefix ++ (if is_last then " " else "│ ") children := dependencies[dep] or || for i,child in children.items -- cgit v1.2.3