Fix style

This commit is contained in:
Rylan Polster 2022-07-25 18:31:35 +02:00
parent d4e5886571
commit 233cef08cf
No known key found for this signature in database
GPG Key ID: 46A744940CFF4D64

View File

@ -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