diff options
| author | Viktor Szakats | 2017-09-01 16:47:31 +0000 | 
|---|---|---|
| committer | Viktor Szakats | 2017-09-01 16:47:31 +0000 | 
| commit | 42e2c71dbc9c744fdabab70bf51dce106a76f0a6 (patch) | |
| tree | f29ee6af0f983fdcf9b140da69c854f1a12d0409 /Library/Homebrew/dev-cmd | |
| parent | 18f5b43d9001955784e235ce7f87068038175a82 (diff) | |
| download | brew-42e2c71dbc9c744fdabab70bf51dce106a76f0a6.tar.bz2 | |
cleanup range check
Diffstat (limited to 'Library/Homebrew/dev-cmd')
| -rw-r--r-- | Library/Homebrew/dev-cmd/audit.rb | 2 | 
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  | 
