diff options
| author | Jack Nagel | 2014-07-16 18:54:19 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-07-16 18:54:19 -0500 |
| commit | 005f41c02a3ec335697972d7645d47ff127c6c6b (patch) | |
| tree | a9ee0b35d7cce5c493ddbe3255cd5dcf9c73a4d0 /Library | |
| parent | 8044c4524bfde1f935c28486a7e3c7effd26fa6a (diff) | |
| download | brew-005f41c02a3ec335697972d7645d47ff127c6c6b.tar.bz2 | |
Use [] on the instance rather than the wrapped hash
Diffstat (limited to 'Library')
| -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 |
