pkg_version: tweak variable naming.
This commit is contained in:
parent
8ed8d6979c
commit
57fd98ec4f
@ -36,10 +36,10 @@ class PkgVersion
|
|||||||
def <=>(other)
|
def <=>(other)
|
||||||
return unless other.is_a?(PkgVersion)
|
return unless other.is_a?(PkgVersion)
|
||||||
|
|
||||||
comp_ver = (version <=> other.version)
|
version_comparison = (version <=> other.version)
|
||||||
return if comp_ver.nil?
|
return if version_comparison.nil?
|
||||||
|
|
||||||
comp_ver.nonzero? || revision <=> other.revision
|
version_comparison.nonzero? || revision <=> other.revision
|
||||||
end
|
end
|
||||||
alias eql? ==
|
alias eql? ==
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user