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

- old
+ new

@@ -5,12 +5,22 @@ module Lint # This cop checks for the presence of empty expressions. # # @example # - # @bad + # # bad + # # foo = () # if () + # bar + # end + # + # @example + # + # # good + # + # foo = (some_expression) + # if (some_expression) # bar # end class EmptyExpression < Cop MSG = 'Avoid empty expressions.'.freeze