Add function to check is YNode zero

This commit is contained in:
Donny Xia
2020-12-11 14:52:35 -08:00
parent cc43a2d732
commit bae3228557
4 changed files with 30 additions and 1 deletions

View File

@@ -197,7 +197,8 @@ func (rn *RNode) IsNilOrEmpty() bool {
return rn.IsNil() ||
IsYNodeTaggedNull(rn.YNode()) ||
IsYNodeEmptyMap(rn.YNode()) ||
IsYNodeEmptySeq(rn.YNode())
IsYNodeEmptySeq(rn.YNode()) ||
IsYNodeZero(rn.YNode())
}
// GetMeta returns the ResourceMeta for an RNode