Skip to content

Commit

Permalink
chore: fix removeNode
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasRooney committed Jan 27, 2025
1 parent ca5609b commit 0a805f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/overlay/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func removeNode(idx parentIndex, node *yaml.Node) {
parent.Content = append(parent.Content[:i-1], parent.Content[i+1:]...)
} else {
// if we select a key, we should delete the value
parent.Content = append(parent.Content[:i], parent.Content[i+1:]...)
parent.Content = append(parent.Content[:i], parent.Content[i+2:]...)
}
return
case yaml.SequenceNode:
Expand Down

0 comments on commit 0a805f7

Please sign in to comment.