Skip to content

Commit a09bf63

Browse files
marckhouzamk8s-publishing-bot
authored andcommitted
Fix linter
Signed-off-by: Marc Khouzam <[email protected]> Kubernetes-commit: 2631a5f21eacd4f7a02eb14ad9d950bd54ab78ed
1 parent 8e374f9 commit a09bf63

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pkg/util/completion/completion.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,10 +325,12 @@ func compGetResourceList(restClientGetter genericclioptions.RESTClientGetter, cm
325325
o.Verbs = []string{"get"}
326326
// TODO:Should set --request-timeout=5s
327327

328-
o.Complete(restClientGetter, cmd, nil)
328+
if err := o.Complete(restClientGetter, cmd, nil); err != nil {
329+
return []string{}
330+
}
329331

330332
// Ignore errors as the output may still be valid
331-
o.RunAPIResources()
333+
_ = o.RunAPIResources()
332334

333335
// Resources can be a comma-separated list. The last element is then
334336
// the one we should complete. For example if toComplete=="pods,secre"

0 commit comments

Comments
 (0)