diff --git a/contrib/completions/bash/kubectl b/contrib/completions/bash/kubectl index 4d29416a5c5..639d7688437 100644 --- a/contrib/completions/bash/kubectl +++ b/contrib/completions/bash/kubectl @@ -174,9 +174,6 @@ __kubectl_get_resource() return 1 fi __kubectl_parse_get "${nouns[${#nouns[@]} -1]}" - if [[ $? -eq 0 ]]; then - return 0 - fi } # $1 is the name of the pod we want to get the list of containers inside diff --git a/pkg/kubectl/cmd/cmd.go b/pkg/kubectl/cmd/cmd.go index 6f4ac8d55e2..e8295041bd2 100644 --- a/pkg/kubectl/cmd/cmd.go +++ b/pkg/kubectl/cmd/cmd.go @@ -45,9 +45,6 @@ __kubectl_get_resource() return 1 fi __kubectl_parse_get "${nouns[${#nouns[@]} -1]}" - if [[ $? -eq 0 ]]; then - return 0 - fi } # $1 is the name of the pod we want to get the list of containers inside