Skip to content

Commit

Permalink
Remove unnecessary line length check
Browse files Browse the repository at this point in the history
  • Loading branch information
mokagio committed Feb 19, 2025
1 parent 85f7bc2 commit d330e1f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions bin/install_windows_10_sdk.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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'"
Expand Down

0 comments on commit d330e1f

Please sign in to comment.