Skip to content

Commit c2cb57c

Browse files
committed
Refactor revert for Sequential
1 parent dc9e9f4 commit c2cb57c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/transforms/sequential.jl

+3-2
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ function apply(s::Sequential, table)
2424
end
2525

2626
function revert(s::Sequential, newtable, cache)
27-
current = newtable
27+
allcache = deepcopy(cache)
28+
current = newtable
2829
for transform in reverse(s.transforms)
29-
current = revert(transform, current, pop!(cache))
30+
current = revert(transform, current, pop!(allcache))
3031
end
3132
current
3233
end

0 commit comments

Comments
 (0)