mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-13 06:59:44 +07:00
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:
committed by
intellij-monorepo-bot
parent
c4c67df3c3
commit
7951291cf3
@@ -23,7 +23,7 @@ try {
|
|||||||
$expanded = [System.Environment]::ExpandEnvironmentVariables($exclusion)
|
$expanded = [System.Environment]::ExpandEnvironmentVariables($exclusion)
|
||||||
$resolvedPaths = Resolve-Path -Path $expanded -ErrorAction Stop
|
$resolvedPaths = Resolve-Path -Path $expanded -ErrorAction Stop
|
||||||
foreach ($resolved in $resolvedPaths) {
|
foreach ($resolved in $resolvedPaths) {
|
||||||
$result += $resolved.ProviderPath.ToString()
|
$result += $resolved.ProviderPath
|
||||||
}
|
}
|
||||||
} catch [System.Management.Automation.ItemNotFoundException] {
|
} catch [System.Management.Automation.ItemNotFoundException] {
|
||||||
} catch [System.Management.Automation.DriveNotFoundException] {
|
} catch [System.Management.Automation.DriveNotFoundException] {
|
||||||
|
|||||||
Reference in New Issue
Block a user