diff --git a/Library/Homebrew/dev-cmd/bump.rb b/Library/Homebrew/dev-cmd/bump.rb index d6b6909c55..c8416b1ead 100644 --- a/Library/Homebrew/dev-cmd/bump.rb +++ b/Library/Homebrew/dev-cmd/bump.rb @@ -71,8 +71,6 @@ module Homebrew def current_formula_version(formula) formula.version.to_s - rescue - nil end def livecheck_formula(formula) diff --git a/Library/Homebrew/utils/repology.rb b/Library/Homebrew/utils/repology.rb index ba298038e7..877c6eeef1 100644 --- a/Library/Homebrew/utils/repology.rb +++ b/Library/Homebrew/utils/repology.rb @@ -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)