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 97fc93db9..d468d69cb 100644
--- a/Library/Homebrew/dev-cmd/audit.rb
+++ b/Library/Homebrew/dev-cmd/audit.rb
@@ -257,9 +257,8 @@ class FormulaAuditor
end
lenratio = (100 * secure_details[:file].length / details[:file].length).to_i
- if lenratio >= 90 && lenratio <= 120
- return "The URL #{url} may be able to use HTTPS rather than HTTP. Please verify it in a browser."
- end
+ return if lenratio < 90 || lenratio > 120
+ "The URL #{url} may be able to use HTTPS rather than HTTP. Please verify it in a browser."
end
def self.http_content_headers_and_checksum(url, hash_needed: false, user_agent: :default)