From 675e80e9aedb104c9a1814d8c1450d8debb3147b Mon Sep 17 00:00:00 2001 From: EricFromCanada Date: Wed, 1 Dec 2021 22:22:19 -0500 Subject: [PATCH] formula_auditor: use symbols for spec iteration --- Library/Homebrew/formula_auditor.rb | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Library/Homebrew/formula_auditor.rb b/Library/Homebrew/formula_auditor.rb index e736553923..6c56204c56 100644 --- a/Library/Homebrew/formula_auditor.rb +++ b/Library/Homebrew/formula_auditor.rb @@ -482,13 +482,10 @@ module Homebrew return unless DevelopmentTools.curl_handles_most_https_certificates? - use_homebrew_curl = false - %w[Stable HEAD].each do |name| - spec_name = name.downcase.to_sym - next unless (spec = formula.send(spec_name)) + use_homebrew_curl = [:stable, :head].any? do |spec_name| + next false unless (spec = formula.send(spec_name)) - use_homebrew_curl = spec.using == :homebrew_curl - break if use_homebrew_curl + spec.using == :homebrew_curl end if (http_content_problem = curl_check_http_content(homepage,