From 6ff5e194c74cbfc53c53b867159faed5a5afc086 Mon Sep 17 00:00:00 2001 From: Jamie Macey Date: Mon, 25 Oct 2010 21:11:45 -0700 Subject: fix warnings: splat is redundant for puts Signed-off-by: Adam Vandenberg --- Library/Homebrew/brew.h.rb | 2 +- Library/Homebrew/utils.rb | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'Library') diff --git a/Library/Homebrew/brew.h.rb b/Library/Homebrew/brew.h.rb index 4f9601f26..ae376707d 100644 --- a/Library/Homebrew/brew.h.rb +++ b/Library/Homebrew/brew.h.rb @@ -537,7 +537,7 @@ private when 0 # noop when 1 - puts *files + puts files else puts "#{root}/ (#{files.length} #{other}files)" end 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 -- cgit v1.2.3