aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dev-cmd
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/dev-cmd')
-rw-r--r--Library/Homebrew/dev-cmd/audit.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb
index b4906cb80..5e674cf12 100644
--- a/Library/Homebrew/dev-cmd/audit.rb
+++ b/Library/Homebrew/dev-cmd/audit.rb
@@ -1495,9 +1495,8 @@ 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
- problem "The URL #{url} could use HTTPS rather than HTTP"
- end
+ return if !etag_match && !content_length_match && !file_match
+ problem "The URL #{url} could use HTTPS rather than HTTP"
end
def problem(text)