From 76339916214396e9967b1c6bb8d906b2327b7a98 Mon Sep 17 00:00:00 2001 From: Baffour Adu Boampong Date: Tue, 7 Jul 2020 13:43:31 +0000 Subject: [PATCH] Remove exception handling in formula version vheck --- Library/Homebrew/dev-cmd/bump.rb | 2 -- Library/Homebrew/utils/repology.rb | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) 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)