Skip to content

Commit aaed998

Browse files
🌟 [Fix]: Update Format-ModuleManifest to use IsNullOrEmpty for better null checks
1 parent 199bc21 commit aaed998

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎scripts/Helpers/Helpers.psm1‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,7 @@ function Format-ModuleManifest {
917917
$manifestContent = Get-Content -Path $Path
918918
$manifestContent = $manifestContent | ForEach-Object { $_ -replace '#.*' }
919919
$manifestContent = $manifestContent | ForEach-Object { $_.TrimEnd() }
920-
$manifestContent = $manifestContent | Where-Object { $_ | IsNotNullOrEmpty }
920+
$manifestContent = $manifestContent | Where-Object { -not [string]::IsNullOrEmpty($_) }
921921
[System.IO.File]::WriteAllLines($Path, $manifestContent, $Utf8BomEncoding)
922922
$manifestContent = Get-Content -Path $Path -Raw
923923

0 commit comments

Comments
 (0)