lib/rubocop/cop/style/favor_join.rb in rubocop-0.15.0 vs lib/rubocop/cop/style/favor_join.rb in rubocop-0.16.0
- old
+ new
@@ -14,10 +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
- convention(node, :selector)
+ add_offence(node, :selector)
end
end
end
end
end