lib/rubocop/cop/style/favor_join.rb in rubocop-0.12.0 vs lib/rubocop/cop/style/favor_join.rb in rubocop-0.13.0
- old
+ new
@@ -14,12 +14,10 @@
def on_send(node)
receiver_node, method_name, *arg_nodes = *node
if receiver_node && receiver_node.type == :array &&
method_name == :* && arg_nodes[0].type == :str
- add_offence(:convention,
- node.loc.selector,
- MSG)
+ convention(node, :selector)
end
end
end
end
end