From 69fbaf2dbf001fdeaaf6491a9ff898766ce2a135 Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Wed, 24 Aug 2022 15:12:58 +0800 Subject: [PATCH] Fix comment; reuse `variations`. --- Library/Homebrew/formula_auditor.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/formula_auditor.rb b/Library/Homebrew/formula_auditor.rb index f13a2caf8c..b226eaf598 100644 --- a/Library/Homebrew/formula_auditor.rb +++ b/Library/Homebrew/formula_auditor.rb @@ -879,7 +879,7 @@ module Homebrew return false if linux_deps.exclude?("gcc") variations = formula_hash["variations"] - # The formula has no variations, so all versions depend on GCC. + # The formula has no variations, so all OS-version-arch triples depend on GCC. return false if variations.blank? # FIXME: This returns a false positive for formulae that do, for example: @@ -889,7 +889,7 @@ module Homebrew # end # ``` variations_deps = [] - formula_hash["variations"].each_value do |data| + variations.each_value do |data| variations_deps += data["dependencies"] end variations_deps.uniq!