Merge pull request #18598 from khipp/fix-bundle-version-comparison
Fix `BundleVersion` comparison when `short_version` is not comparable
This commit is contained in:
commit
a74bdb271c
@ -74,7 +74,9 @@ module Homebrew
|
|||||||
short_version = self.short_version.then(&make_version)
|
short_version = self.short_version.then(&make_version)
|
||||||
other_short_version = other.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
|
end
|
||||||
|
|
||||||
difference
|
difference
|
||||||
|
Loading…
x
Reference in New Issue
Block a user