If there is no output, don't find longest length.
This commit is contained in:
parent
596d26f8b4
commit
f533224427
@ -101,6 +101,8 @@ def curl *args
|
||||
end
|
||||
|
||||
def puts_columns items, cols = 4
|
||||
return if items.empty?
|
||||
|
||||
if $stdout.tty?
|
||||
items = items.join("\n") if items.is_a?(Array)
|
||||
items.concat("\n") unless items.empty?
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user