Skip to content

Commit 53bd7f4

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

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

scripts/main.ps1

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@ $settingsFilePath = $null
88
if (-not [string]::IsNullOrEmpty($env:PSMODULE_INVOKE_SCRIPTANALYZER_INPUT_SettingsFilePath)) {
99
try {
1010
$resolvedPath = Resolve-Path -Path $env:PSMODULE_INVOKE_SCRIPTANALYZER_INPUT_SettingsFilePath -ErrorAction Stop | Select-Object -ExpandProperty Path
11-
if (Test-Path -Path $resolvedPath) {
12-
$settingsFilePath = $resolvedPath
13-
Write-Information "Using settings file: $settingsFilePath"
14-
}
11+
$settingsFilePath = $resolvedPath
12+
Write-Information "Using settings file: $settingsFilePath"
1513
} catch {
1614
Write-Warning "Settings file not found at path: $($env:PSMODULE_INVOKE_SCRIPTANALYZER_INPUT_SettingsFilePath). Using default settings."
1715
}

0 commit comments

Comments
 (0)