aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dev-cmd/audit.rb
diff options
context:
space:
mode:
authorViktor Szakats2017-08-27 18:00:59 +0000
committerViktor Szakats2017-08-27 18:00:59 +0000
commit1c2c390c6fae78062c28a8ed1610936a4c2dd412 (patch)
treec310c50b5bdfd66d1c4615012a1252b0a8c1ff89 /Library/Homebrew/dev-cmd/audit.rb
parent11b267a7cfb3411c74c4fc21732463d543fc4fb3 (diff)
downloadbrew-1c2c390c6fae78062c28a8ed1610936a4c2dd412.tar.bz2
try addressing style issues #2
Diffstat (limited to 'Library/Homebrew/dev-cmd/audit.rb')
-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)