From 7951291cf3d91f6868f164bccc304ad04dc91057 Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Thu, 28 Nov 2024 18:47:57 +0100 Subject: [PATCH] Cleanup (minor optimization: `PathInfo.ProviderPath` is already a string) (cherry picked from commit ddce5b19d4960c1382cded72fdf0a36df0908b84) IJ-CR-149682 GitOrigin-RevId: 2d8b160df84f4f8775762f775f43c0c981ba87a8 --- bin/win/defender-exclusions.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/win/defender-exclusions.ps1 b/bin/win/defender-exclusions.ps1 index 91b7b2e8bf58..6fbc8a74f9fb 100644 --- a/bin/win/defender-exclusions.ps1 +++ b/bin/win/defender-exclusions.ps1 @@ -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] {