diff options
| author | Jack Nagel | 2014-07-16 18:54:19 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-07-16 18:54:19 -0500 |
| commit | c27d79bab1d957abb47c9d0fca37c03f03a4fb5c (patch) | |
| tree | 59d26e32963e30821e82f731b9240181701a5149 /Library/Homebrew/bottles.rb | |
| parent | 5db31ebbde2d94a07a2a5d2f4a3ac9cafa5a681a (diff) | |
| download | homebrew-c27d79bab1d957abb47c9d0fca37c03f03a4fb5c.tar.bz2 | |
Use [] on the instance rather than the wrapped hash
Diffstat (limited to 'Library/Homebrew/bottles.rb')
| -rw-r--r-- | Library/Homebrew/bottles.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Library/Homebrew/bottles.rb b/Library/Homebrew/bottles.rb index 7ff9d2e6d..ec02075d0 100644 --- a/Library/Homebrew/bottles.rb +++ b/Library/Homebrew/bottles.rb @@ -69,8 +69,7 @@ class BottleCollector end def fetch_checksum_for(tag) - return [@checksums[tag], tag] if key?(tag) - + return self[tag], tag if key?(tag) find_altivec_tag(tag) || find_or_later_tag(tag) end @@ -99,7 +98,7 @@ class BottleCollector def find_altivec_tag(tag) if tag.to_s =~ /(\w+)_(g4|g4e|g5)$/ altivec_tag = "#{$1}_altivec".to_sym - return [@checksums[altivec_tag], altivec_tag] if key?(altivec_tag) + return self[altivec_tag], altivec_tag if key?(altivec_tag) end end |
