From c1d0de54d5ae25ea78cde7ff30e58a5fd07e089c Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Sun, 6 Nov 2022 17:43:41 +0700 Subject: CMS support for OtherRevocationInfoFormat - see https://github.com/bcgit/bc-csharp/pull/328 --- crypto/src/asn1/cms/OtherRevocationInfoFormat.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'crypto/src/asn1/cms/OtherRevocationInfoFormat.cs') diff --git a/crypto/src/asn1/cms/OtherRevocationInfoFormat.cs b/crypto/src/asn1/cms/OtherRevocationInfoFormat.cs index 78354896f..f6335cdac 100644 --- a/crypto/src/asn1/cms/OtherRevocationInfoFormat.cs +++ b/crypto/src/asn1/cms/OtherRevocationInfoFormat.cs @@ -1,6 +1,4 @@ -using System; - -namespace Org.BouncyCastle.Asn1.Cms +namespace Org.BouncyCastle.Asn1.Cms { public class OtherRevocationInfoFormat : Asn1Encodable @@ -44,8 +42,8 @@ namespace Org.BouncyCastle.Asn1.Cms */ public static OtherRevocationInfoFormat GetInstance(object obj) { - if (obj is OtherRevocationInfoFormat) - return (OtherRevocationInfoFormat)obj; + if (obj is OtherRevocationInfoFormat otherRevocationInfoFormat) + return otherRevocationInfoFormat; if (obj != null) return new OtherRevocationInfoFormat(Asn1Sequence.GetInstance(obj)); return null; -- cgit 1.5.1