diff --git a/pkg/cmd/delete/environment.go b/pkg/cmd/delete/environment.go index 3fb02bcb..c105a0d0 100644 --- a/pkg/cmd/delete/environment.go +++ b/pkg/cmd/delete/environment.go @@ -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)",