try addressing style issues
This commit is contained in:
parent
923c84d4f7
commit
11b267a7cf
@ -240,10 +240,10 @@ class FormulaAuditor
|
||||
return "The URL #{url} could use HTTPS rather than HTTP"
|
||||
end
|
||||
|
||||
if type == "homepage"
|
||||
return if type != "homepage"
|
||||
|
||||
details[:file] = details[:file].gsub(/https?:\\?\/\\?\//, '/')
|
||||
secure_details[:file] = secure_details[:file].gsub(/https?:\\?\/\\?\//, '/')
|
||||
details[:file] = details[:file].gsub(%r{https?:\\?\/\\?\/}, "/")
|
||||
secure_details[:file] = secure_details[:file].gsub(%r{https?:\\?\/\\?\/}, "/")
|
||||
|
||||
# Same content after normalization
|
||||
if details[:file] == secure_details[:file]
|
||||
@ -261,7 +261,6 @@ class FormulaAuditor
|
||||
return "The URL #{url} may be able to use HTTPS rather than HTTP. Please verify it in a browser."
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def self.http_content_headers_and_checksum(url, hash_needed: false, user_agent: :default)
|
||||
max_time = hash_needed ? "600" : "25"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user