Skip to content

Commit db25895

Browse files
committed
Use File.Exists in GetFileSecurityZone
1 parent 757d545 commit db25895

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/System.Management.Automation/utils/ClrFacade.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,10 @@ private static void EncodingRegisterProvider()
137137
internal static SecurityZone GetFileSecurityZone(string filePath)
138138
{
139139
Diagnostics.Assert(Path.IsPathRooted(filePath), "Caller makes sure the path is rooted.");
140-
Diagnostics.Assert(Utils.FileExists(filePath), "Caller makes sure the file exists.");
140+
Diagnostics.Assert(File.Exists(filePath), "Caller makes sure the file exists.");
141141
string sysRoot = System.Environment.GetEnvironmentVariable("SystemRoot");
142142
string urlmonPath = Path.Combine(sysRoot, @"System32\urlmon.dll");
143-
if (Utils.FileExists(urlmonPath))
143+
if (File.Exists(urlmonPath))
144144
{
145145
return MapSecurityZoneWithUrlmon(filePath);
146146
}

0 commit comments

Comments
 (0)