Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c71a300

Browse files
author
Sulabh Chaturvedi
committedAug 18, 2020
Duplicated
1 parent 20e71ac commit c71a300

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed
 

‎cmd/kubectx/list.go

-5
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
"facette.io/natsort"
88
"github.com/pkg/errors"
99

10-
"github.com/ahmetb/kubectx/internal/cmdutil"
1110
"github.com/ahmetb/kubectx/internal/kubeconfig"
1211
"github.com/ahmetb/kubectx/internal/printer"
1312
)
@@ -19,10 +18,6 @@ func (_ ListOp) Run(stdout, stderr io.Writer) error {
1918
kc := new(kubeconfig.Kubeconfig).WithLoader(kubeconfig.DefaultLoader)
2019
defer kc.Close()
2120
if err := kc.Parse(); err != nil {
22-
if cmdutil.IsNotFoundErr(err) {
23-
printer.Warning(stderr, "kubeconfig file not found")
24-
return nil
25-
}
2621
return errors.Wrap(err, "kubeconfig error")
2722
}
2823

0 commit comments

Comments
 (0)
Please sign in to comment.