lib/spoom/deadcode/remover.rb in spoom-1.3.0 vs lib/spoom/deadcode/remover.rb in spoom-1.3.1
- old
+ new
@@ -310,10 +310,10 @@
end
# Adjust the lines to remove to include following blank lines
after = context.next_node
if before.nil? && after && after.location.start_line > end_line + 1
- end_line = after.location.end_line - 1
+ end_line = after.location.start_line - 1
elsif after.nil? && context.parent_node.location.end_line > end_line + 1
end_line = context.parent_node.location.end_line - 1
end
delete_lines(start_line, end_line)