From 5131224b7311be95682734386f891cfdfc20ce1f Mon Sep 17 00:00:00 2001 From: Arthur Silva Sens Date: Tue, 28 May 2024 20:25:19 -0300 Subject: [PATCH] Remove duplicated error handling Signed-off-by: Arthur Silva Sens --- cmd/stack.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/cmd/stack.go b/cmd/stack.go index 2c64c5d..57c4126 100644 --- a/cmd/stack.go +++ b/cmd/stack.go @@ -49,13 +49,6 @@ var stackCmd = &cobra.Command{ os.Exit(1) } - if err != nil { - logger.With("error", err.Error()).Error("error while getting kubeconfig") - os.Exit(1) - } - - cmd.Context() - if err := createPrometheusOperator(cmd.Context(), logger, kclient, mclient, metav1.NamespaceDefault, "0.73.2"); err != nil { logger.With("error", err.Error()).Error("error while creating Prometheus Operator") os.Exit(1)