lib/rubocop/cop/mixin/negative_conditional.rb in rubocop-0.20.0 vs lib/rubocop/cop/mixin/negative_conditional.rb in rubocop-0.20.1

- 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_offense(node, :expression, error_message) + add_offense(node, :expression) end end end end end