Merge pull request #12774 from milas/fix-bump-formula-pr

dev-cmd/bump-formula-pr: fix undefined method null error
This commit is contained in:
Nanda H Krishna 2022-01-21 16:54:38 -05:00 committed by GitHub
commit 768b172393
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -435,10 +435,9 @@ module Homebrew
specs = {}
specs[:tag] = tag if tag.present?
version = Version.detect(url, **specs)
return if version.null?
end
return if version.null?
check_throttle(formula, version)
check_closed_pull_requests(formula, tap_remote_repo, args: args, version: version)
end