empty list or map item return error

This commit is contained in:
nimohunter
2019-09-16 09:42:49 +08:00
parent 2e82985380
commit b5d5e70bdc

View File

@@ -117,9 +117,6 @@ func (kf *KunstructuredFactoryImpl) validate(u unstructured.Unstructured) error
}
func checkListItemNil(in interface{}) (bool, string) {
//if in == nil {
// return true, ""
//}
switch v := in.(type) {
case map[string]interface{}:
for key, s := range v {