Don't coerce value to string unnecessarily

This commit is contained in:
Jack Nagel 2014-06-03 11:32:26 -05:00
parent 0e0bee9c50
commit f1808cd66d

View File

@ -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