Commit 9261f2e
Changed files (1)
lib
spandx
core
lib/spandx/core/dependency.rb
@@ -33,8 +33,9 @@ module Spandx
return 1 if other.nil?
score = (name <=> other.name)
- score = score&.zero? ? (version <=> other&.version) : score
- score&.zero? ? (path.to_s <=> other&.path.to_s) : score
+ puts [score, name, other.name].inspect if score.nil?
+ score = score.zero? ? (version <=> other&.version) : score
+ score.zero? ? (path.to_s <=> other&.path.to_s) : score
end
def hash