lib/rubocop/cop/chef/deprecation/legacy_notify_syntax.rb in cookstyle-6.18.8 vs lib/rubocop/cop/chef/deprecation/legacy_notify_syntax.rb in cookstyle-6.19.5

- old
+ new

@@ -78,10 +78,10 @@ else "\"#{type.source}[\#{#{name.source}}]\"" end new_val = "#{notify_type} #{action.source}, #{service_value}".dup new_val << ", #{timing.first.source}" unless timing.empty? - corrector.replace(node.loc.expression, new_val) + corrector.replace(node, new_val) end end end end end