Remove check for items

This commit is contained in:
Mikhail Mazurskiy
2018-04-04 20:54:53 +10:00
parent e82e8b4e89
commit d5fdac399c

View File

@@ -57,11 +57,8 @@ func (u *UnstructuredList) EachListItem(fn func(runtime.Object) error) error {
func (u *UnstructuredList) UnstructuredContent() map[string]interface{} { func (u *UnstructuredList) UnstructuredContent() map[string]interface{} {
out := make(map[string]interface{}, len(u.Object)+1) out := make(map[string]interface{}, len(u.Object)+1)
// shallow copy every property but items // shallow copy every property
for k, v := range u.Object { for k, v := range u.Object {
if k == "items" {
continue
}
out[k] = v out[k] = v
} }