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?
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)