audit: fix brew style warning.
This commit is contained in:
parent
64c83f3286
commit
b2dd6bc9b0
@ -1495,10 +1495,9 @@ class ResourceAuditor
|
||||
content_length_match = details[:content_length] && details[:content_length] == secure_details[:content_length]
|
||||
file_match = details[:file_hash] == secure_details[:file_hash]
|
||||
|
||||
if etag_match || content_length_match || file_match
|
||||
return if !etag_match && !content_length_match && !file_match
|
||||
problem "The URL #{url} could use HTTPS rather than HTTP"
|
||||
end
|
||||
end
|
||||
|
||||
def problem(text)
|
||||
@problems << text
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user