Cleanup (minor optimization: PathInfo.ProviderPath is already a string)

(cherry picked from commit ddce5b19d4960c1382cded72fdf0a36df0908b84)

IJ-CR-149682

GitOrigin-RevId: 2d8b160df84f4f8775762f775f43c0c981ba87a8
This commit is contained in:
Roman Shevchenko
2024-11-28 18:47:57 +01:00
committed by intellij-monorepo-bot
parent c4c67df3c3
commit 7951291cf3

View File

@@ -23,7 +23,7 @@ try {
$expanded = [System.Environment]::ExpandEnvironmentVariables($exclusion)
$resolvedPaths = Resolve-Path -Path $expanded -ErrorAction Stop
foreach ($resolved in $resolvedPaths) {
$result += $resolved.ProviderPath.ToString()
$result += $resolved.ProviderPath
}
} catch [System.Management.Automation.ItemNotFoundException] {
} catch [System.Management.Automation.DriveNotFoundException] {