Skip to content

Commit 209bbc6

Browse files
committed
chore(commands): resolve ameba lints
1 parent c28c8da commit 209bbc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/format.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module Geode::Commands
2121

2222
unless command.children.empty?
2323
str << "Commands".colorize.magenta << '\n'
24-
max_size = command.children.keys.map(&.size).max + 4
24+
max_size = 4 + commands.children.keys.max_of &.size
2525

2626
command.children.each do |name, cmd|
2727
str << "» " << name

0 commit comments

Comments
 (0)