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