lib/rubocop/cop/style/and_or.rb in rubocop-0.15.0 vs lib/rubocop/cop/style/and_or.rb in rubocop-0.16.0
- old
+ new
@@ -22,12 +22,12 @@
def process_logical_op(node)
op = node.loc.operator.source
op_type = node.type.to_s
if op == op_type
- convention(node,
- :operator,
- sprintf(MSG, OPS[op], op))
+ add_offence(node,
+ :operator,
+ sprintf(MSG, OPS[op], op))
end
end
def autocorrect(node)
c = correction(node)