Skip to content

Commit

Permalink
fix:fmt
Browse files Browse the repository at this point in the history
Signed-off-by: Shivam Purohit <[email protected]>
  • Loading branch information
shivam-Purohit committed Feb 7, 2024
1 parent 41df169 commit 99486e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cmd/delete/environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,14 @@ Note: The default location of the config file is $HOME/.litmusconfig, and can be
environmentListData := environmentList.Data.ListEnvironmentDetails.Environments
for i := 0; i < len(environmentListData); i++ {
if environmentListData[i].EnvironmentID == environmentID {
if(len(environmentListData[i].InfraIDs) > 0){
if len(environmentListData[i].InfraIDs) > 0 {
utils.Red.Println("Chaos Infras present in the Chaos Environment")
utils.Red.Println("Delete the Chaos Infras first to delete the Environment")
os.Exit(1)
}
}
}

// confirm before deletion
prompt := promptui.Prompt{
Label: "Are you sure you want to delete this Chaos Environment? (y/n)",
Expand Down

0 comments on commit 99486e0

Please sign in to comment.