kubectl: simplify code with help of linter

This commit is contained in:
Alexander Campbell
2017-05-25 13:37:56 -07:00
parent 01ae6edc6c
commit ef9ae61240
16 changed files with 34 additions and 71 deletions

View File

@@ -506,9 +506,7 @@ func extractResourceList(objs []runtime.Object) ([]runtime.Object, error) {
if err != nil {
return nil, err
}
for _, item := range items {
finalObjs = append(finalObjs, item)
}
finalObjs = append(finalObjs, items...)
}
return finalObjs, nil
}