lib/rubocop/cop/chef/deprecation/legacy_notify_syntax.rb in cookstyle-7.5.3 vs lib/rubocop/cop/chef/deprecation/legacy_notify_syntax.rb in cookstyle-7.6.1

- old
+ new

@@ -72,10 +72,10 @@ add_offense(node, message: MSG, severity: :warning) do |corrector| service_value = case name.type when :str "'#{type.source}[#{name.value}]'" when :dstr - "\"#{type.source}[#{name.value.source}]\"" + "\"#{type.source}[#{name.value}]\"" else "\"#{type.source}[\#{#{name.source}}]\"" end new_val = +"#{notify_type} #{action.source}, #{service_value}" new_val << ", #{timing.first.source}" unless timing.empty?