Skip to content

Commit

Permalink
Remove duplicated error handling
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Silva Sens <[email protected]>
  • Loading branch information
ArthurSens committed May 28, 2024
1 parent 6ed20ab commit 5131224
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions cmd/stack.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5131224

Please sign in to comment.