lib/rubocop/cop/chef/style/negating_only_if.rb in cookstyle-7.30.1 vs lib/rubocop/cop/chef/style/negating_only_if.rb in cookstyle-7.30.3

- old
+ new

@@ -54,10 +54,10 @@ # the value was double negated to work around types: ex: !!systemd? return if code.descendants.first.send_type? && code.descendants.first.negation_method? - add_offense(node, message: MSG, severity: :refactor) do |corrector| + add_offense(node, severity: :refactor) do |corrector| corrector.replace(code, code.source.gsub(/^!/, '')) corrector.replace(only_if.source_range, 'not_if') end end end