Skip to content

Commit 98d85d8

Browse files
🩹 [Patch]: Fix usage of IsNullOrEmpty method in Get-PSModuleAliasesToExport and Get-PSModuleCmdletsToExport functions
1 parent 791356d commit 98d85d8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎scripts/helpers/Build/Get-PSModuleAliasesToExport.ps1‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
$manifest = Get-ModuleManifest -Path $manifestFilePath -Verbose:$false
3030

3131
Write-Host "[$manifestPropertyName]"
32-
$aliasesToExport = (($manifest.AliasesToExport).count -eq 0) -or ($manifest.AliasesToExport | IsNullOrEmpty) ? '*' : $manifest.AliasesToExport
32+
$aliasesToExport = (($manifest.AliasesToExport).count -eq 0) -or [string]::IsNullOrEmpty($manifest.AliasesToExport) ? '*' : $manifest.AliasesToExport
3333
$aliasesToExport | ForEach-Object {
3434
Write-Host "[$manifestPropertyName] - [$_]"
3535
}

‎scripts/helpers/Build/Get-PSModuleCmdletsToExport.ps1‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
$manifest = Get-ModuleManifest -Path $manifestFilePath -Verbose:$false
3030

3131
Write-Host "[$manifestPropertyName]"
32-
$cmdletsToExport = (($manifest.CmdletsToExport).count -eq 0) -or ($manifest.CmdletsToExport | IsNullOrEmpty) ? '' : $manifest.CmdletsToExport
32+
$cmdletsToExport = (($manifest.CmdletsToExport).count -eq 0) -or [string]::IsNullOrEmpty($manifest.CmdletsToExport) ? '' : $manifest.CmdletsToExport
3333
$cmdletsToExport | ForEach-Object {
3434
Write-Host "[$manifestPropertyName] - [$_]"
3535
}

0 commit comments

Comments
 (0)