Skip to content

Commit 4a53482

Browse files
vcsjonesgithub-actions
authored andcommitted
Remove null check that is not needed.
1 parent 0b40012 commit 4a53482

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/libraries/Common/src/Interop/Android/System.Security.Cryptography.Native.Android

src/libraries/Common/src/Interop/Android/System.Security.Cryptography.Native.Android/Interop.X509Chain.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ internal static SafeX509ChainContextHandle X509ChainCreateContext(SafeX509Handle
2222
{
2323
SafeX509ChainContextHandle chainContext = X509ChainCreateContext(cert, extraStore, extraStore.Length);
2424

25-
if (chainContext is null || chainContext.IsInvalid)
25+
if (chainContext.IsInvalid)
2626
{
27-
chainContext?.Dispose();
27+
chainContext.Dispose();
2828
throw new CryptographicException(SR.Cryptography_AndroidX509ChainContextInitializationFailed);
2929
}
3030

0 commit comments

Comments
 (0)