Skip to content

Commit 04b52ab

Browse files
committed
Fix choice type error
1 parent 0164b4a commit 04b52ab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/cli.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def pick_item(items)
7070
return default_item
7171
end
7272

73-
choice = val
73+
choice = val.to_i
7474
else
7575
choice = gets_number
7676
end

0 commit comments

Comments
 (0)