Skip to content

Commit

Permalink
Update dstr handling for new rubocop-ast
Browse files Browse the repository at this point in the history
This was fixed in rubocop-ast so we don't have to get the source anymore
to get the actual string.

rubocop/rubocop-ast#167

Signed-off-by: Tim Smith <tsmith@chef.io>
  • Loading branch information
tas50 committed Jan 29, 2021
1 parent 1eaa95e commit 0d31281
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubocop/cop/chef/deprecation/legacy_notify_syntax.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def on_send(node)
when :str
"'#{type.source}[#{name.value}]'"
when :dstr
"\"#{type.source}[#{name.value.source}]\""
"\"#{type.source}[#{name.value}]\""
else
"\"#{type.source}[\#{#{name.source}}]\""
end
Expand Down

0 comments on commit 0d31281

Please sign in to comment.