aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils.rb
diff options
context:
space:
mode:
authorJamie Macey2010-10-25 21:11:45 -0700
committerAdam Vandenberg2010-10-30 14:50:18 -0700
commit6ff5e194c74cbfc53c53b867159faed5a5afc086 (patch)
tree0a47fc84a591a218816a76c0ac88a3651f5c1424 /Library/Homebrew/utils.rb
parent1e41264f420b9ac5d8864e162d00ccfaa2020662 (diff)
downloadbrew-6ff5e194c74cbfc53c53b867159faed5a5afc086.tar.bz2
fix warnings: splat is redundant for puts
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Homebrew/utils.rb')
-rw-r--r--Library/Homebrew/utils.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index 4d426a9bf..24846d6b1 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -63,7 +63,7 @@ end
def ohai title, *sput
title = title.to_s[0, `/usr/bin/tput cols`.strip.to_i-4] unless ARGV.verbose?
puts "#{Tty.blue}==>#{Tty.white} #{title}#{Tty.reset}"
- puts *sput unless sput.empty?
+ puts sput unless sput.empty?
end
def opoo warning
@@ -73,7 +73,7 @@ end
def onoe error
lines = error.to_s.split'\n'
puts "#{Tty.red}Error#{Tty.reset}: #{lines.shift}"
- puts *lines unless lines.empty?
+ puts lines unless lines.empty?
end
def pretty_duration s
@@ -140,7 +140,7 @@ def puts_columns items, cols = 4
IO.popen("/usr/bin/pr -#{cols} -t -w#{console_width}", "w"){|io| io.puts(items) }
else
- puts *items
+ puts items
end
end