bump: skip PR check if livecheck does not return a version

This commit is contained in:
EricFromCanada 2021-11-11 10:02:30 -05:00
parent 3b41be9983
commit dd439b4c11
No known key found for this signature in database
GPG Key ID: 179D9CDDDB814168

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