Skip to content

Commit da90d08

Browse files
remove unused local (#41226)
* remove unused local issue #30457 remove unused local variable fullPath at line 415 * Update src/libraries/System.Security.Cryptography.X509Certificates/src/System/Security/Cryptography/X509Certificates/X509Certificate2.cs Co-authored-by: Kevin Gosse <[email protected]> Co-authored-by: Kevin Gosse <[email protected]>
1 parent 0f107d1 commit da90d08

File tree

1 file changed

+1
-1
lines changed
  • src/libraries/System.Security.Cryptography.X509Certificates/src/System/Security/Cryptography/X509Certificates

1 file changed

+1
-1
lines changed

src/libraries/System.Security.Cryptography.X509Certificates/src/System/Security/Cryptography/X509Certificates/X509Certificate2.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ public static X509ContentType GetCertContentType(string fileName)
412412

413413
// .NET Framework compat: The .NET Framework expands the filename to a full path for the purpose of performing a CAS permission check. While CAS is not present here,
414414
// we still need to call GetFullPath() so we get the same exception behavior if the fileName is bad.
415-
string fullPath = Path.GetFullPath(fileName);
415+
_ = Path.GetFullPath(fileName);
416416

417417
return X509Pal.Instance.GetCertContentType(fileName);
418418
}

0 commit comments

Comments
 (0)