Skip to content

Commit

Permalink
Merge pull request #16920 from Homebrew/fix-version-type
Browse files Browse the repository at this point in the history
bump-formula-pr: fix type of detected version
  • Loading branch information
EricFromCanada committed Mar 20, 2024
2 parents b8d3d50 + afbf6a1 commit e3de11a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Library/Homebrew/dev-cmd/bump-formula-pr.rb
Original file line number Diff line number Diff line change
Expand Up @@ -462,8 +462,8 @@ def check_new_version(formula, tap_remote_repo, args:, version: nil, url: nil, t
if version.nil?
specs = {}
specs[:tag] = tag if tag.present?
version = Version.detect(url, **specs)
return if version.null?
version = Version.detect(url, **specs).to_s
return if version.blank?
end

check_throttle(formula, version)
Expand Down

0 comments on commit e3de11a

Please sign in to comment.