Skip to content

Commit

Permalink
Resolve to the right ERB
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandre Terrasa <[email protected]>
  • Loading branch information
Morriar committed Jun 13, 2024
1 parent 2a588a7 commit 0067d1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/spoom/cli/deadcode.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def deadcode(*paths)
$stderr.puts "Indexing #{blue(files.size.to_s)} files..."
files.each do |file|
content = File.read(file)
content = ERB.new(content).src if file.end_with?(".erb")
content = Spoom::Deadcode::ERB.new(content).src if file.end_with?(".erb")

tree = Spoom::Deadcode.parse_ruby(content, file: file)
Spoom::Deadcode.index_node(index, tree, content, file: file, plugins: plugins)
Expand Down

0 comments on commit 0067d1e

Please sign in to comment.