We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcead30 commit 06e2558Copy full SHA for 06e2558
scripts/tests/SourceCode/PSModule/PSModule.Tests.ps1
@@ -93,11 +93,7 @@ BeforeAll {
93
}
94
Write-Host '::endgroup::'
95
$publicClassPath = Join-Path -Path $classPath -ChildPath 'public'
96
- $publicClassFiles = if (Test-Path -Path $publicClassPath) {
97
- (Get-ChildItem -Path $publicClassPath -File -Filter '*.ps1' -Recurse)
98
- } else {
99
- $null
100
- }
+ $publicClassFiles = (Test-Path -Path $publicClassPath) ? (Get-ChildItem -Path $publicClassPath -File -Filter '*.ps1' -Recurse) : $null
101
Write-Host "::group:: - Public [$($publicClassFiles.Count)]"
102
$publicClassFiles | ForEach-Object {
103
Write-Host " - $($_.FullName)"
0 commit comments