Skip to content

Commit

Permalink
Merge pull request #8 from prometheus-operator/remove-duplicated-error
Browse files Browse the repository at this point in the history
Remove duplicated error handling
  • Loading branch information
nicolastakashi authored May 29, 2024
2 parents 6ed20ab + 5131224 commit 65d001a
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 65d001a

Please sign in to comment.