Merge pull request #59470 from liubin/fix6

Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Remove duplicated comment
This commit is contained in:
Kubernetes Submit Queue 2018-02-07 07:20:30 -08:00 committed by GitHub
commit 3c6392985f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -402,7 +402,7 @@ func (options *GetOptions) Run(f cmdutil.Factory, cmd *cobra.Command, args []str
}
objToPrint := typedObj
if printer.IsGeneric() {
// use raw object as recieved from the builder when using generic
// use raw object as received from the builder when using generic
// printer instead of decodedObj
objToPrint = original
}
@ -573,7 +573,6 @@ func (options *GetOptions) printGeneric(printer printers.ResourcePrinter, r *res
var obj runtime.Object
if !singleItemImplied || len(infos) > 1 {
// we have more than one item, so coerce all items into a list
// we have more than one item, so coerce all items into a list.
// we don't want an *unstructured.Unstructured list yet, as we
// may be dealing with non-unstructured objects. Compose all items