Merge pull request #13786 from EricFromCanada/stable-head-symbols
formula_auditor: use symbols for spec iteration
This commit is contained in:
commit
998716a0d9
@ -482,13 +482,10 @@ module Homebrew
|
|||||||
|
|
||||||
return unless DevelopmentTools.curl_handles_most_https_certificates?
|
return unless DevelopmentTools.curl_handles_most_https_certificates?
|
||||||
|
|
||||||
use_homebrew_curl = false
|
use_homebrew_curl = [:stable, :head].any? do |spec_name|
|
||||||
%w[Stable HEAD].each do |name|
|
next false unless (spec = formula.send(spec_name))
|
||||||
spec_name = name.downcase.to_sym
|
|
||||||
next unless (spec = formula.send(spec_name))
|
|
||||||
|
|
||||||
use_homebrew_curl = spec.using == :homebrew_curl
|
spec.using == :homebrew_curl
|
||||||
break if use_homebrew_curl
|
|
||||||
end
|
end
|
||||||
|
|
||||||
if (http_content_problem = curl_check_http_content(homepage,
|
if (http_content_problem = curl_check_http_content(homepage,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user