aboutsummaryrefslogtreecommitdiff
path: root/examples/tomodeps
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-04-06 16:49:40 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-04-06 16:49:40 -0400
commite87e6dabfbdc1d35b5fe41b5d84dab38df3c8e76 (patch)
tree93588c81392489a621ce4fcca41645c92c0d06e9 /examples/tomodeps
parentf69f862bf6e744834d781867a85f962c783f314e (diff)
Insert `then` for clarity
Diffstat (limited to 'examples/tomodeps')
-rw-r--r--examples/tomodeps/tomodeps.tm6
1 files changed, 3 insertions, 3 deletions
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