summary refs log tree commit diff
path: root/crypto/src/asn1/ocsp/ResponseData.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-03-11 23:36:32 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-03-11 23:36:32 +0700
commit8ed01d5f6322defa0b3dbb1e149b05736f54f832 (patch)
treefde48f03f14134ecd9b9ece814309bda07e85371 /crypto/src/asn1/ocsp/ResponseData.cs
parentObsolete unused segmentLimit (diff)
downloadBouncyCastle.NET-ed25519-8ed01d5f6322defa0b3dbb1e149b05736f54f832.tar.xz
Refactoring in Asn1 classes
Diffstat (limited to 'crypto/src/asn1/ocsp/ResponseData.cs')
-rw-r--r--crypto/src/asn1/ocsp/ResponseData.cs7
1 files changed, 2 insertions, 5 deletions
diff --git a/crypto/src/asn1/ocsp/ResponseData.cs b/crypto/src/asn1/ocsp/ResponseData.cs
index b18e1d623..b79301997 100644
--- a/crypto/src/asn1/ocsp/ResponseData.cs
+++ b/crypto/src/asn1/ocsp/ResponseData.cs
@@ -63,16 +63,13 @@ namespace Org.BouncyCastle.Asn1.Ocsp
 		{
 		}
 
-		private ResponseData(
-			Asn1Sequence seq)
+		private ResponseData(Asn1Sequence seq)
 		{
 			int index = 0;
 
 			Asn1Encodable enc = seq[0];
-			if (enc is Asn1TaggedObject)
+			if (enc is Asn1TaggedObject o)
 			{
-				Asn1TaggedObject o = (Asn1TaggedObject)enc;
-
 				if (o.TagNo == 0)
 				{
 					this.versionPresent = true;