mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
Use new
This commit is contained in:
@@ -45,10 +45,7 @@ func IsEmpty(node *RNode) bool {
|
||||
|
||||
// IsEmptyMap returns true if the RNode is an empty node or an empty map
|
||||
func IsEmptyMap(node *RNode) bool {
|
||||
if IsEmpty(node) {
|
||||
return true
|
||||
}
|
||||
return IsYNodeEmptyMap(node.YNode())
|
||||
return IsEmpty(node) || IsYNodeEmptyMap(node.YNode())
|
||||
}
|
||||
|
||||
// IsNil return true if the node is nil, or its underlying YNode is nil.
|
||||
|
||||
Reference in New Issue
Block a user