We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Format-ModuleManifest
IsNullOrEmpty
1 parent 199bc21 commit aaed998Copy full SHA for aaed998
‎scripts/Helpers/Helpers.psm1‎
@@ -917,7 +917,7 @@ function Format-ModuleManifest {
917
$manifestContent = Get-Content -Path $Path
918
$manifestContent = $manifestContent | ForEach-Object { $_ -replace '#.*' }
919
$manifestContent = $manifestContent | ForEach-Object { $_.TrimEnd() }
920
- $manifestContent = $manifestContent | Where-Object { $_ | IsNotNullOrEmpty }
+ $manifestContent = $manifestContent | Where-Object { -not [string]::IsNullOrEmpty($_) }
921
[System.IO.File]::WriteAllLines($Path, $manifestContent, $Utf8BomEncoding)
922
$manifestContent = Get-Content -Path $Path -Raw
923
0 commit comments