Skip to content

Commit

Permalink
Update yaml/_dumper/dumper.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
iuioiua authored Mar 11, 2024
1 parent 5559afa commit ec9bd21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yaml/_dumper/dumper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -814,8 +814,8 @@ function inspectNode(
inspectNode(object[idx], objects, duplicatesIndexes);
}
} else {
for (const objectKey of Object.keys(object)) {
inspectNode(object[objectKey], objects, duplicatesIndexes);
for (const object of Object.values(object)) {
inspectNode(object, objects, duplicatesIndexes);
}
}
}
Expand Down

0 comments on commit ec9bd21

Please sign in to comment.