diff options
| author | Jack Nagel | 2013-02-17 22:54:43 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-02-18 12:13:36 -0600 |
| commit | f037be514865a8dc141b7c870e7640939b5fa22a (patch) | |
| tree | d8c8aa8211bbb55a82beed3da5ee67f1989cf804 /Library/Homebrew/utils.rb | |
| parent | 1a799f04e6af870c03aa02f2c3a9db6e0bd55bca (diff) | |
| download | brew-f037be514865a8dc141b7c870e7640939b5fa22a.tar.bz2 | |
Don't shadow outer local variables
Diffstat (limited to 'Library/Homebrew/utils.rb')
| -rw-r--r-- | Library/Homebrew/utils.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
