mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Fix NullToken equality
This commit is contained in:
parent
0d4f241d48
commit
03b309cc76
@ -30,6 +30,8 @@ class Version
|
||||
|
||||
def <=>(other)
|
||||
case other
|
||||
when NullToken
|
||||
0
|
||||
when NumericToken
|
||||
other.value == 0 ? 0 : -1
|
||||
when AlphaToken, BetaToken, RCToken
|
||||
|
Loading…
x
Reference in New Issue
Block a user