Skip to content

Commit

Permalink
remove deprecated arguments in erb.new (#220)
Browse files Browse the repository at this point in the history
* remove deprecated arguments in erb.new

Signed-off-by: Corey Hemminger <[email protected]>
  • Loading branch information
Stromweld authored Mar 16, 2023
1 parent b690ab9 commit 9047b2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/chef-cli/command/shell_init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def completion_for(shell)
return "" unless (completion_template_basename = completion_template_for(shell))

completion_template_path = expand_completion_template_path(completion_template_basename)
erb = ERB.new(File.read(completion_template_path), nil, "-")
erb = ERB.new(File.read(completion_template_path), trim_mode: "-")
context_binding = shell_completion_template_context.get_binding
erb.result(context_binding)
end
Expand Down

0 comments on commit 9047b2f

Please sign in to comment.