Merge pull request #12418 from EricFromCanada/bump-livecheck-presence

bump: skip PR check if livecheck does not return a version
This commit is contained in:
Mike McQuaid 2021-11-11 15:35:54 +00:00 committed by GitHub
commit 53f890bbe9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -227,7 +227,8 @@ module Homebrew
end
livecheck_latest = livecheck_result(formula_or_cask)
pull_requests = if !args.no_pull_requests? && (args.named.present? || livecheck_latest != current_version)
pull_requests = if !args.no_pull_requests? && (args.named.present? ||
(livecheck_latest.is_a?(Version) && livecheck_latest != current_version))
retrieve_pull_requests(formula_or_cask, name)
end