Skip to content

Commit 99486e0

Browse files
fix:fmt
Signed-off-by: Shivam Purohit <[email protected]>
1 parent 41df169 commit 99486e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/cmd/delete/environment.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,14 @@ Note: The default location of the config file is $HOME/.litmusconfig, and can be
115115
environmentListData := environmentList.Data.ListEnvironmentDetails.Environments
116116
for i := 0; i < len(environmentListData); i++ {
117117
if environmentListData[i].EnvironmentID == environmentID {
118-
if(len(environmentListData[i].InfraIDs) > 0){
118+
if len(environmentListData[i].InfraIDs) > 0 {
119119
utils.Red.Println("Chaos Infras present in the Chaos Environment")
120120
utils.Red.Println("Delete the Chaos Infras first to delete the Environment")
121121
os.Exit(1)
122122
}
123123
}
124124
}
125-
125+
126126
// confirm before deletion
127127
prompt := promptui.Prompt{
128128
Label: "Are you sure you want to delete this Chaos Environment? (y/n)",

0 commit comments

Comments
 (0)