Skip to content

Commit 0a805f7

Browse files
committed
chore: fix removeNode
1 parent ca5609b commit 0a805f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/overlay/apply.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func removeNode(idx parentIndex, node *yaml.Node) {
6464
parent.Content = append(parent.Content[:i-1], parent.Content[i+1:]...)
6565
} else {
6666
// if we select a key, we should delete the value
67-
parent.Content = append(parent.Content[:i], parent.Content[i+1:]...)
67+
parent.Content = append(parent.Content[:i], parent.Content[i+2:]...)
6868
}
6969
return
7070
case yaml.SequenceNode:

0 commit comments

Comments
 (0)