lib/array_diff.rb in assert_value-1.5.3 vs lib/array_diff.rb in assert_value-1.5.4
- old
+ new
@@ -153,12 +153,10 @@
def to_diff
offset = 0
@diffs.each { |b|
first = b[0][1]
- length = b.length
- action = b[0][0]
addcount = 0
remcount = 0
b.each { |l|
if l[0] == "+"
addcount += 1
@@ -178,11 +176,11 @@
if l[0] == "-"
offset -= 1
print "< "
elsif l[0] == "+"
offset += 1
- if lastdel
- lastdel = false
+ if lastdel
+ lastdel = false
puts "---"
end
print "> "
end
print l[2]