Remove exception handling in formula version vheck

This commit is contained in:
Baffour Adu Boampong 2020-07-07 13:43:31 +00:00
parent b253100bcd
commit 7633991621
2 changed files with 1 additions and 4 deletions

View File

@ -71,8 +71,6 @@ module Homebrew
def current_formula_version(formula)
formula.version.to_s
rescue
nil
end
def livecheck_formula(formula)

View File

@ -8,8 +8,7 @@ module Repology
MAX_PAGINATION = 15
def query_api(last_package_in_response = "")
last_package_in_response += "/" unless last_package_in_response.blank?
last_package_in_response += "/" if last_package_in_response.present?
url = "https://repology.org/api/v1/projects/#{last_package_in_response}?inrepo=homebrew&outdated=1"
output, _errors, _status = curl_output(url.to_s)