Skip to content

Commit

Permalink
resource_auditor: fix Utils::Curl usage
Browse files Browse the repository at this point in the history
Needed after Homebrew#15940.
  • Loading branch information
ZhongRuoyu committed Sep 5, 2023
1 parent ce21e47 commit 41a810b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Library/Homebrew/resource_auditor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ module Homebrew
#
# @api private
class ResourceAuditor
include Utils::Curl

attr_reader :name, :version, :checksum, :url, :mirrors, :using, :specs, :owner, :spec_name, :problems

def initialize(resource, spec_name, options = {})
Expand Down Expand Up @@ -123,7 +125,7 @@ def audit_urls
raise HomebrewCurlDownloadStrategyError, url if
strategy <= HomebrewCurlDownloadStrategy && !Formula["curl"].any_version_installed?

if (http_content_problem = Utils::Curl.curl_check_http_content(
if (http_content_problem = curl_check_http_content(
url,
"source URL",
specs: specs,
Expand Down

0 comments on commit 41a810b

Please sign in to comment.