Skip to content

Commit 52f5ac0

Browse files
Update typed/remove.go
Co-authored-by: Joe Betz <[email protected]>
1 parent 0c56ef5 commit 52f5ac0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

typed/remove.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func (w *removingWalker) doList(t *schema.List) (errs ValidationErrors) {
9292
if w.toRemove.Has(path) {
9393
continue
9494
}
95-
if !w.toRemove.WithPrefix(pe).Empty() {
95+
if itemInToRemoveSubpaths {
9696
item = removeItemsWithSchema(item, w.toRemove.WithPrefix(pe), w.schema, t.ElementType, w.shouldExtract)
9797
}
9898
newItems = append(newItems, item.Unstructured())

0 commit comments

Comments
 (0)