app/models/version.rb in cms_scanner-0.0.37.3 vs app/models/version.rb in cms_scanner-0.0.37.4
- old
+ new
@@ -12,10 +12,10 @@
parse_finding_options(opts)
end
# @param [ Version, String ] other
def ==(other)
- (self <=> other) == 0
+ (self <=> other).zero?
end
# @param [ Version, String ] other
def <(other)
(self <=> other) == -1