Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jokestax committed Nov 11, 2024
1 parent 2727b45 commit 73afd9d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions internal/progress/ci.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@ package progress

import (
"fmt"
"log"
"time"

"github.com/konstructio/kubefirst/internal/cluster"
)

func WatchClusterForCi(clusterName string) {

ticker := time.NewTicker(10 * time.Second)
defer ticker.Stop()

Expand All @@ -24,7 +22,7 @@ func WatchClusterForCi(clusterName string) {
provisioningCluster, _ := cluster.GetCluster(clusterName)

if provisioningCluster.Status == "error" {
log.Fatalf("unable to provision cluster: %s", provisioningCluster.LastCondition)
fmt.Printf("unable to provision cluster: %s", provisioningCluster.LastCondition)
done <- true
}

Expand Down
2 changes: 0 additions & 2 deletions internal/progress/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ func AddStep(message string) {
}

func CompleteStep(message string) {

if !CanRunBubbleTea {
fmt.Println(message)
return
Expand Down Expand Up @@ -236,7 +235,6 @@ func Error(message string) {
}

func StartProvisioning(clusterName string) {

if !CanRunBubbleTea {
WatchClusterForCi(clusterName)
} else {
Expand Down

0 comments on commit 73afd9d

Please sign in to comment.