Skip to content

Commit 8361cd9

Browse files
authored
Revert "Fix nullable usage on authenticode (#13791) (#13804)"
This reverts commit fbca914.
1 parent 44a701f commit 8361cd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/System.Management.Automation/security/Authenticode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ internal static Signature GetSignature(string fileName, string fileContent)
292292
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Reliability", "CA2001:AvoidCallingProblematicMethods")]
293293
private static Signature GetSignatureFromCatalog(string filename)
294294
{
295-
if (Signature.CatalogApiAvailable.HasValue && !Signature.CatalogApiAvailable.GetValueOrDefault())
295+
if (Signature.CatalogApiAvailable.HasValue && !Signature.CatalogApiAvailable.Value)
296296
{
297297
// Signature.CatalogApiAvailable would be set to false the first time it is detected that
298298
// WTGetSignatureInfo API does not exist on the platform, or if the API is not functional on the target platform.

0 commit comments

Comments
 (0)