Skip to content

Commit

Permalink
Update src/transforms/rename.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
juliohm authored Nov 23, 2021
1 parent 6ca7888 commit a34fed3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/transforms/rename.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ end

function revert(transform::Rename, table, cache)
# reversing the key-value pairs of the Dict
newnames = Dict()
for (old, new) in transform.names
newnames[new] = old
end
newnames = Dict(new => old for (old, new) in transform.names)
_rename(newnames, table) |> first
end

Expand Down

0 comments on commit a34fed3

Please sign in to comment.