Skip to content

Commit 3c113d4

Browse files
Update scripts/main.ps1
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 53bd7f4 commit 3c113d4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/main.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ $codePath = Resolve-Path -Path $path | Select-Object -ExpandProperty Path
77
$settingsFilePath = $null
88
if (-not [string]::IsNullOrEmpty($env:PSMODULE_INVOKE_SCRIPTANALYZER_INPUT_SettingsFilePath)) {
99
try {
10-
$resolvedPath = Resolve-Path -Path $env:PSMODULE_INVOKE_SCRIPTANALYZER_INPUT_SettingsFilePath -ErrorAction Stop | Select-Object -ExpandProperty Path
11-
$settingsFilePath = $resolvedPath
10+
$settingsFilePath = Resolve-Path -Path $env:PSMODULE_INVOKE_SCRIPTANALYZER_INPUT_SettingsFilePath -ErrorAction Stop | Select-Object -ExpandProperty Path
1211
Write-Information "Using settings file: $settingsFilePath"
1312
} catch {
1413
Write-Warning "Settings file not found at path: $($env:PSMODULE_INVOKE_SCRIPTANALYZER_INPUT_SettingsFilePath). Using default settings."

0 commit comments

Comments
 (0)