Don't coerce value to string unnecessarily
This commit is contained in:
parent
0e0bee9c50
commit
f1808cd66d
@ -23,7 +23,7 @@ module OS
|
||||
|
||||
def <=>(other)
|
||||
@comparison_cache.fetch(other) do
|
||||
v = SYMBOLS.fetch(other, other.to_s)
|
||||
v = SYMBOLS.fetch(other) { other.to_s }
|
||||
@comparison_cache[other] = super(Version.new(v))
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user