Merge pull request #16920 from Homebrew/fix-version-type

bump-formula-pr: fix type of detected version
This commit is contained in:
Eric Knibbe 2024-03-19 23:00:09 -04:00 committed by GitHub
commit e3de11ac50
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -462,8 +462,8 @@ module Homebrew
if version.nil? if version.nil?
specs = {} specs = {}
specs[:tag] = tag if tag.present? specs[:tag] = tag if tag.present?
version = Version.detect(url, **specs) version = Version.detect(url, **specs).to_s
return if version.null? return if version.blank?
end end
check_throttle(formula, version) check_throttle(formula, version)