If there is no output, don't find longest length.

This commit is contained in:
Adam Vandenberg 2009-12-18 16:28:30 -08:00 committed by Max Howell
parent 596d26f8b4
commit f533224427

View File

@ -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?