File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed
Library/Homebrew/cask/lib/hbc Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change 22require "hbc/download"
33require "digest"
44require "utils/git"
5- require "utils/curl"
65
76module Hbc
87 class Audit
@@ -31,7 +30,6 @@ def run!
3130 check_url
3231 check_generic_artifacts
3332 check_token_conflicts
34- check_https_availability
3533 check_download
3634 check_single_pre_postflight
3735 check_single_uninstall_zap
@@ -277,17 +275,6 @@ def core_formula_url
277275 "#{ core_tap . default_remote } /blob/master/Formula/#{ cask . token } .rb"
278276 end
279277
280- def check_https_availability
281- check_url_for_https_availability ( cask . url , user_agents : [ cask . url . user_agent ] ) unless cask . url . to_s . empty?
282- check_url_for_https_availability ( cask . appcast ) unless cask . appcast . to_s . empty?
283- check_url_for_https_availability ( cask . homepage ) unless cask . homepage . to_s . empty?
284- end
285-
286- def check_url_for_https_availability ( url_to_check , user_agents : [ :default ] )
287- problem = curl_check_http_content ( url_to_check . to_s , user_agents : user_agents )
288- add_error problem unless problem . nil?
289- end
290-
291278 def check_download
292279 return unless download && cask . url
293280 odebug "Auditing download"
You can’t perform that action at this time.
0 commit comments