lib/rubocop/cop/lint/useless_comparison.rb in rubocop-0.46.0 vs lib/rubocop/cop/lint/useless_comparison.rb in rubocop-0.47.0

- old
+ new

@@ -5,10 +5,12 @@ module Lint # This cop checks for comparison of something with itself. # # @example # - # x.top >= x.top + # # bad + # + # x.top >= x.top class UselessComparison < Cop MSG = 'Comparison of something with itself detected.'.freeze OPS = %w(== === != < > <= >= <=>).freeze def_node_matcher :comparison?, "(send $_ {:#{OPS.join(' :')}} $_)"