diff --git a/Library/Homebrew/formulary.rb b/Library/Homebrew/formulary.rb index b00c0a91f0..658b211c62 100644 --- a/Library/Homebrew/formulary.rb +++ b/Library/Homebrew/formulary.rb @@ -136,8 +136,8 @@ module Formulary class_s = Formulary.class_s(name) json_formula = Homebrew::API::Formula.all_formulae[name] - if (bottle_tag = Utils::Bottles.tag.to_s.presence) && - (variations = json_formula["variations"].presence) && + if (bottle_tag = Utils::Bottles.tag.to_s.presence) && + (variations = json_formula["variations"].presence) && (variation = variations[bottle_tag].presence) json_formula = json_formula.merge(variation) end