lib/node_mutation/adapter/parser.rb in node_mutation-1.21.6 vs lib/node_mutation/adapter/parser.rb in node_mutation-1.22.0
- old
+ new
@@ -80,10 +80,10 @@
lines = source.split "\n"
lines_count = lines.length
if lines_count > 1 && lines_count == evaluated.size
new_code = []
lines.each_with_index { |line, index|
- new_code << (index == 0 ? line : line[NodeMutation.adapter.get_indent(evaluated.first) - NodeMutation.tab_width..-1])
+ new_code << (index == 0 ? line : line[get_indent(evaluated.first) - NodeMutation.tab_width..-1])
}
new_code.join("\n")
else
source
end