From f037be514865a8dc141b7c870e7640939b5fa22a Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 17 Feb 2013 22:54:43 -0600 Subject: Don't shadow outer local variables --- Library/Homebrew/utils.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Library/Homebrew/utils.rb') diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index 150cf3c76..955c1e8f2 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -199,8 +199,8 @@ def archs_for_command cmd Pathname.new(cmd).archs end -def inreplace path, before=nil, after=nil - [*path].each do |path| +def inreplace paths, before=nil, after=nil + Array(paths).each do |path| f = File.open(path, 'r') s = f.read -- cgit v1.2.3