added IsEmpty() method

This commit is contained in:
Natasha Sarkar
2020-09-30 12:17:14 -07:00
parent dd8edb1b01
commit 7c8c827a88
7 changed files with 16 additions and 12 deletions

View File

@@ -37,7 +37,7 @@ func (p *plugin) Transform(m resmap.ResMap) error {
return nil
}
for _, r := range m.Resources() {
if len(r.Map()) == 0 {
if r.IsEmpty() {
// Don't mutate empty objects?
continue
}