diff --git a/Windows10Debloater.ps1 b/Windows10Debloater.ps1 index 5ef4925..a41f1ac 100644 --- a/Windows10Debloater.ps1 +++ b/Windows10Debloater.ps1 @@ -657,8 +657,6 @@ Switch ($Prompt1) { No { = $No } - Cancel { - } } #Prompt asking to delete OneDrive $Prompt4 = [Windows.MessageBox]::Show($OneDriveDelete, "Delete OneDrive", $Button, $ErrorIco) @@ -670,8 +668,6 @@ Switch ($Prompt1) { No { = $No } - Cancel { - } } #Prompt asking if you'd like to reboot your machine $Prompt5 = [Windows.MessageBox]::Show($Reboot, "Reboot", $Button, $Warn) @@ -694,8 +690,6 @@ Switch ($Prompt1) { Start-Sleep 2 Exit; = $No } - Cancel { - } } } No { @@ -713,8 +707,6 @@ Switch ($Prompt1) { No { = $No } - Cancel { - } } #Prompt asking if you'd like to reboot your machine $Prompt7 = [Windows.MessageBox]::Show($Reboot, "Reboot", $Button, $Warn) @@ -737,10 +729,6 @@ Switch ($Prompt1) { Start-Sleep 2 Exit; = $No } - Cancel { - } } } - Cancel { - } }