Skip to content

Commit

Permalink
Remove check for items
Browse files Browse the repository at this point in the history
  • Loading branch information
ash2k committed Apr 4, 2018
1 parent e82e8b4 commit d5fdac3
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,8 @@ func (u *UnstructuredList) EachListItem(fn func(runtime.Object) error) error {
func (u *UnstructuredList) UnstructuredContent() map[string]interface{} {
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 {
if k == "items" {
continue
}
out[k] = v
}

Expand Down

0 comments on commit d5fdac3

Please sign in to comment.