From b2dd6bc9b0c765104898d128c455b2f107498399 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Wed, 15 Feb 2017 14:41:06 +0000 Subject: [PATCH] audit: fix brew style warning. --- Library/Homebrew/dev-cmd/audit.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index b4906cb80a..5e674cf125 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)