audit: fix brew style warning.

This commit is contained in:
Mike McQuaid 2017-02-15 14:41:06 +00:00 committed by GitHub
parent 64c83f3286
commit b2dd6bc9b0

View File

@ -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