pkg_version: tweak variable naming.

This commit is contained in:
Mike McQuaid 2020-03-04 11:28:28 +00:00 committed by GitHub
parent 8ed8d6979c
commit 57fd98ec4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,10 +36,10 @@ class PkgVersion
def <=>(other)
return unless other.is_a?(PkgVersion)
comp_ver = (version <=> other.version)
return if comp_ver.nil?
version_comparison = (version <=> other.version)
return if version_comparison.nil?
comp_ver.nonzero? || revision <=> other.revision
version_comparison.nonzero? || revision <=> other.revision
end
alias eql? ==