Skip to content

Commit

Permalink
fix: change the if/else to only check for errors
Browse files Browse the repository at this point in the history
  • Loading branch information
giulianisanches committed Jun 30, 2023
1 parent 4828cd4 commit 1b4e1fe
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/kind/kind.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ func SetUp(name, kVersion string, installServing, installEventing bool) error {
installEventing = true
}

if cengine, err := getInstalledContainerEngine(); err != nil {
container_engine = cengine
} else {
cengine, err := getInstalledContainerEngine()
container_engine = cengine

if err != nil {
fmt.Println(err)
os.Exit(1)
}
Expand Down

0 comments on commit 1b4e1fe

Please sign in to comment.