From 005f41c02a3ec335697972d7645d47ff127c6c6b Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 16 Jul 2014 18:54:19 -0500 Subject: [PATCH] Use [] on the instance rather than the wrapped hash --- Library/Homebrew/bottles.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/bottles.rb b/Library/Homebrew/bottles.rb index 7ff9d2e6d3..ec02075d01 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