lib/rubocop/cop/lint/empty_expression.rb in rubocop-0.88.0 vs lib/rubocop/cop/lint/empty_expression.rb in rubocop-0.89.0

- old
+ new

@@ -20,16 +20,16 @@ # # foo = (some_expression) # if (some_expression) # bar # end - class EmptyExpression < Cop + class EmptyExpression < Base MSG = 'Avoid empty expressions.' def on_begin(node) return unless empty_expression?(node) - add_offense(node, location: node.source_range) + add_offense(node) end private def empty_expression?(begin_node)