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

- old
+ new

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