lib/rubocop/cop/mixin/negative_conditional.rb in rubocop-0.18.1 vs lib/rubocop/cop/mixin/negative_conditional.rb in rubocop-0.19.0
- old
+ new
@@ -13,10 +13,10 @@
condition = condition.children.last while condition.type == :begin
if condition.type == :send
_object, method = *condition
if method == :! && !(node.loc.respond_to?(:else) && node.loc.else)
- add_offence(node, :expression, error_message)
+ add_offense(node, :expression, error_message)
end
end
end
end
end