lib/contrast/utils/ruby_ast_rewriter.rb in contrast-agent-4.10.0 vs lib/contrast/utils/ruby_ast_rewriter.rb in contrast-agent-4.11.0

- old
+ new

@@ -36,10 +36,10 @@ # the replace within the given node. def on_dstr node return if node.children.all? { |child_node| child_node.type == :str } new_content = +'(' idx = 0 - while idx < node.children.size + while idx < node.children.length #node.children.each_with_index do |child_node, index| child_node = node.children[idx] # A begin node looks like #{some_code} in ruby, we do a substring # from [2...-1] to get rid of the #{ & trailing }. if child_node.type == :begin