lib/rubocop/cop/style/empty_literal.rb in rubocop-0.15.0 vs lib/rubocop/cop/style/empty_literal.rb in rubocop-0.16.0
- old
+ new
@@ -31,14 +31,14 @@
def on_send(node)
return if part_of_ignored_node?(node)
case node
when ARRAY_NODE
- convention(node, :expression, ARR_MSG)
+ add_offence(node, :expression, ARR_MSG)
when HASH_NODE
- convention(node, :expression, HASH_MSG)
+ add_offence(node, :expression, HASH_MSG)
when STR_NODE
- convention(node, :expression, STR_MSG)
+ add_offence(node, :expression, STR_MSG)
end
end
# TODO: Check block contents as well.
alias_method :on_block, :ignore_node