Fix BundleVersion comparison when short_version is not comparable

This commit is contained in:
Klaus Hipp 2024-10-21 16:22:56 +02:00
parent bac7b6819f
commit 773242b936
No known key found for this signature in database
GPG Key ID: 1BD4AC7145515907

View File

@ -74,7 +74,9 @@ module Homebrew
short_version = self.short_version.then(&make_version)
other_short_version = other.short_version.then(&make_version)
return short_version <=> other_short_version
short_version_difference = short_version <=> other_short_version
return short_version_difference unless short_version_difference.nil?
end
difference