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

remove unnecessary exits

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