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