From d330e1f3fa323ab989e295015bf5af5bb87c64b4 Mon Sep 17 00:00:00 2001 From: Gio Lodi Date: Wed, 19 Feb 2025 23:43:54 +1100 Subject: [PATCH] Remove unnecessary line length check --- bin/install_windows_10_sdk.ps1 | 7 ------- 1 file changed, 7 deletions(-) diff --git a/bin/install_windows_10_sdk.ps1 b/bin/install_windows_10_sdk.ps1 index 07ab4780..9767b21a 100755 --- a/bin/install_windows_10_sdk.ps1 +++ b/bin/install_windows_10_sdk.ps1 @@ -15,13 +15,6 @@ if (-not (Test-Path $windowsSDKVersionFile)) { $windows10SDKVersion = (Get-Content -TotalCount 1 $windowsSDKVersionFile).Trim() -if ($windows10SDKVersion.Count -ne 1) { - Write-Output "[!] Invalid version file format." - Write-Output "Expected exactly one non-empty line, got:" - Write-Output ($windows10SDKVersion -join "`n") # The join poperly formats multiple lines - exit 1 -} - if ($windows10SDKVersion -notmatch '^\d+$') { Write-Output "[!] Invalid version file format." Write-Output "Expected an integer, got: '$windows10SDKVersion'"