aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dev-cmd/audit.rb
diff options
context:
space:
mode:
authorViktor Szakats2017-09-01 16:47:31 +0000
committerViktor Szakats2017-09-01 16:47:31 +0000
commit42e2c71dbc9c744fdabab70bf51dce106a76f0a6 (patch)
treef29ee6af0f983fdcf9b140da69c854f1a12d0409 /Library/Homebrew/dev-cmd/audit.rb
parent18f5b43d9001955784e235ce7f87068038175a82 (diff)
downloadbrew-42e2c71dbc9c744fdabab70bf51dce106a76f0a6.tar.bz2
cleanup range check
Diffstat (limited to 'Library/Homebrew/dev-cmd/audit.rb')
-rw-r--r--Library/Homebrew/dev-cmd/audit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb
index 93aab6384..f6a8b10a6 100644
--- a/Library/Homebrew/dev-cmd/audit.rb
+++ b/Library/Homebrew/dev-cmd/audit.rb
@@ -260,7 +260,7 @@ class FormulaAuditor
end
lenratio = (100 * secure_details[:file].length / details[:file].length).to_i
- return if lenratio < 90 || lenratio > 110
+ return unless (90..110).cover?(lenratio)
"The URL #{url} may be able to use HTTPS rather than HTTP. Please verify it in a browser."
end