提交 03b3113b 编写于 作者: S Sharif Elgamal

remove unnecessary exits

上级 af57dbc0
...@@ -201,13 +201,11 @@ func disableAddonGCPAuth(cfg *config.ClusterConfig) error { ...@@ -201,13 +201,11 @@ func disableAddonGCPAuth(cfg *config.ClusterConfig) error {
client, err := service.K8s.GetCoreClient(cfg.Name) client, err := service.K8s.GetCoreClient(cfg.Name)
if err != nil { if err != nil {
exit.Message(reason.InternalCredsNotFound, err.Error())
return err return err
} }
namespaces, err := client.Namespaces().List(context.TODO(), metav1.ListOptions{}) namespaces, err := client.Namespaces().List(context.TODO(), metav1.ListOptions{})
if err != nil { if err != nil {
exit.Message(reason.InternalCredsNotFound, err.Error())
return err return err
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册