Cleanup / Linting

This commit is contained in:
Raphire
2025-05-25 20:25:06 +02:00
parent 44703765fb
commit 0aa146ac3e
4 changed files with 6 additions and 6 deletions

View File

@@ -60,7 +60,7 @@ param (
# Show error if current powershell environment does not have LanguageMode set to FullLanguage # Show error if current powershell environment does not have LanguageMode set to FullLanguage
if ($ExecutionContext.SessionState.LanguageMode -ne "FullLanguage") { if ($ExecutionContext.SessionState.LanguageMode -ne "FullLanguage") {
Write-Host "Error: Win11Debloat is unable to run on your system. Powershell execution is restricted by security policies" -ForegroundColor Red Write-Host "Error: Win11Debloat is unable to run on your system. PowerShell execution is restricted by security policies" -ForegroundColor Red
Write-Output "" Write-Output ""
Write-Output "Press enter to exit..." Write-Output "Press enter to exit..."
Read-Host | Out-Null Read-Host | Out-Null

View File

@@ -144,7 +144,7 @@ Below is an overview of the key features and functionality offered by Win11Deblo
### Default Settings ### Default Settings
The default mode allows you to quickly and easily apply the changes that are recommended for most people. This includes uninstalling apps that most would consider bloatware, removing many annoying distractions and disabling telemetry and tracking. Expand the section below for more information. Win11Debloat offers a 1-click default mode that allows you to quickly and easily apply the changes that are recommended for most people. This includes uninstalling apps that most would consider bloatware, removing many annoying distractions and disabling telemetry and tracking. Expand the section below for more information.
<details> <details>
<summary>Click to expand</summary> <summary>Click to expand</summary>
@@ -326,7 +326,7 @@ The default mode allows you to quickly and easily apply the changes that are rec
- Microsoft.RemoteDesktop* - Microsoft.RemoteDesktop*
- Windows.DevHome* - Windows.DevHome*
* Can be removed by running the script with the relevant parameter. (See parameters section below) * Can be removed by running the script with the relevant parameter. (Please refer to the wiki for more details)
</blockquote> </blockquote>
</details> </details>
</details> </details>

View File

@@ -581,7 +581,7 @@ function RestartExplorer {
} }
# Only restart if the powershell process matches the OS architecture. # Only restart if the powershell process matches the OS architecture.
# Restarting explorer from a 32bit Powershell window will fail on a 64bit OS # Restarting explorer from a 32bit PowerShell window will fail on a 64bit OS
if ([Environment]::Is64BitProcess -eq [Environment]::Is64BitOperatingSystem) { if ([Environment]::Is64BitProcess -eq [Environment]::Is64BitOperatingSystem) {
Stop-Process -processName: Explorer -Force Stop-Process -processName: Explorer -Force
} }