summary refs log tree commit diff
path: root/crypto/src/asn1/tsp/TSTInfo.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/asn1/tsp/TSTInfo.cs')
-rw-r--r--crypto/src/asn1/tsp/TSTInfo.cs6
1 files changed, 2 insertions, 4 deletions
diff --git a/crypto/src/asn1/tsp/TSTInfo.cs b/crypto/src/asn1/tsp/TSTInfo.cs
index c37208d3c..a8e166cbc 100644
--- a/crypto/src/asn1/tsp/TSTInfo.cs
+++ b/crypto/src/asn1/tsp/TSTInfo.cs
@@ -58,10 +58,8 @@ namespace Org.BouncyCastle.Asn1.Tsp
 			{
 				Asn1Object o = (Asn1Object) e.Current;
 
-				if (o is Asn1TaggedObject)
+				if (o is Asn1TaggedObject tagged)
 				{
-					DerTaggedObject tagged = (DerTaggedObject) o;
-
 					switch (tagged.TagNo)
 					{
 					case 0:
@@ -75,7 +73,7 @@ namespace Org.BouncyCastle.Asn1.Tsp
 					}
 				}
 
-				if (o is DerSequence)
+				if (o is Asn1Sequence)
 				{
 					accuracy = Accuracy.GetInstance(o);
 				}