mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 07:27:21 +00:00
kubectl: simplify code with help of linter
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user