Passing an empty array to puts prints nothing

This commit is contained in:
Jack Nagel 2014-07-19 23:59:43 -05:00
parent 7078af8218
commit 86b3090d4d

View File

@ -45,7 +45,7 @@ end
def ohai title, *sput
title = Tty.truncate(title) if $stdout.tty? && !ARGV.verbose?
puts "#{Tty.blue}==>#{Tty.white} #{title}#{Tty.reset}"
puts sput unless sput.empty?
puts sput
end
def oh1 title