class RuboCop::Cop::Performance::Count

def negate_block_reject(corrector, node)

def negate_block_reject(corrector, node)
  target =
    if node.receiver.body.begin_type?
      node.receiver.body.children.last
    else
      node.receiver.body
    end
  corrector.replace(target, negate_expression(target))
end