Skip to content

Commit

Permalink
Fix condition in overrideSequence
Browse files Browse the repository at this point in the history
  • Loading branch information
kanterov committed May 16, 2024
1 parent 2a4a159 commit a72cea4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/dyn/merge/override.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func overrideSequence(basePath dyn.Path, left []dyn.Value, right []dyn.Value, vi

values = append(values, newValue)
}
} else {
} else if len(left) > len(right) {
for i := minLen; i < len(left); i++ {
path := basePath.Append(dyn.Index(i))
err := visitor.VisitDelete(path, left[i])
Expand Down

0 comments on commit a72cea4

Please sign in to comment.