From 99486e05364f6f4fc4a4d8e2821e84655aa138a9 Mon Sep 17 00:00:00 2001 From: Shivam Purohit Date: Wed, 7 Feb 2024 19:39:12 +0530 Subject: [PATCH] fix:fmt Signed-off-by: Shivam Purohit --- pkg/cmd/delete/environment.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)",