app/models/version.rb in cms_scanner-0.0.37.5 vs app/models/version.rb in cms_scanner-0.0.37.6
- old
+ new
@@ -11,12 +11,14 @@
parse_finding_options(opts)
end
# @param [ Version, String ] other
+ # rubocop:disable Style/NumericPredicate
def ==(other)
- (self <=> other).zero?
+ (self <=> other) == 0
end
+ # rubocop:enable all
# @param [ Version, String ] other
def <(other)
(self <=> other) == -1
end