aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dev-cmd
diff options
context:
space:
mode:
authorMike McQuaid2017-02-15 14:41:06 +0000
committerGitHub2017-02-15 14:41:06 +0000
commitb2dd6bc9b0c765104898d128c455b2f107498399 (patch)
tree8a37a5e597fde14127657ebf71df244f26249b09 /Library/Homebrew/dev-cmd
parent64c83f3286a40cbe8871124f208fb3eaaaffd97a (diff)
downloadbrew-b2dd6bc9b0c765104898d128c455b2f107498399.tar.bz2
audit: fix brew style warning.
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)