Skip to content

Commit 0e5ae5d

Browse files
🩹 [Patch]: Simplify path resolution by removing redundant Select-Object in main.ps1
1 parent 13e05c9 commit 0e5ae5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎scripts/main.ps1‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
$settings = $env:PSMODULE_INVOKE_SCRIPTANALYZER_INPUT_Settings
33
$testPath = Resolve-Path -Path "$PSScriptRoot/tests/PSScriptAnalyzer" | Select-Object -ExpandProperty Path
44
$path = [string]::IsNullOrEmpty($env:PSMODULE_INVOKE_SCRIPTANALYZER_INPUT_Path) ? '.' : $env:PSMODULE_INVOKE_SCRIPTANALYZER_INPUT_Path
5-
$codePath = Resolve-Path -Path $path | Select-Object -ExpandProperty Path | Select-Object -ExpandProperty Path
5+
$codePath = Resolve-Path -Path $path | Select-Object -ExpandProperty Path
66
$settingsFilePath = switch -Regex ($settings) {
77
'Module|SourceCode' {
88
"$testPath/$settings.Settings.psd1"

0 commit comments

Comments
 (0)