lib/rubocop/cop/lint/useless_comparison.rb in rubocop-0.68.1 vs lib/rubocop/cop/lint/useless_comparison.rb in rubocop-0.69.0
- old
+ new
@@ -9,10 +9,10 @@
#
# # bad
#
# x.top >= x.top
class UselessComparison < Cop
- MSG = 'Comparison of something with itself detected.'.freeze
+ MSG = 'Comparison of something with itself detected.'
OPS = %w[== === != < > <= >= <=>].freeze
def_node_matcher :useless_comparison?,
"(send $_match {:#{OPS.join(' :')}} $_match)"