try addressing style issues #2

This commit is contained in:
Viktor Szakats 2017-08-27 18:00:59 +00:00
parent 11b267a7cf
commit 1c2c390c6f

View File

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