Skip to content

Commit

Permalink
remove unused local (#41226)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
seonyounggg and kevingosse authored Aug 24, 2020
1 parent 0f107d1 commit da90d08
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ public static X509ContentType GetCertContentType(string fileName)

// .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,
// we still need to call GetFullPath() so we get the same exception behavior if the fileName is bad.
string fullPath = Path.GetFullPath(fileName);
_ = Path.GetFullPath(fileName);

return X509Pal.Instance.GetCertContentType(fileName);
}
Expand Down

0 comments on commit da90d08

Please sign in to comment.