Skip to content

Commit

Permalink
use correct iterator
Browse files Browse the repository at this point in the history
Co-authored-by: Mohsin Zaidi <2236875+smrz2001@users.noreply.github.com>
  • Loading branch information
warpfork and smrz2001 authored Oct 8, 2021
1 parent 9b20a0b commit 40696f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datamodel/copy.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func Copy(n Node, na NodeAssembler) error {
if err != nil {
return err
}
itr := n.MapIterator()
itr := n.ListIterator()
for !itr.Done() {
_, v, err := itr.Next()
if err != nil {
Expand Down

0 comments on commit 40696f1

Please sign in to comment.