summary refs log tree commit diff
path: root/crypto/src/asn1/tsp/Accuracy.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/asn1/tsp/Accuracy.cs')
-rw-r--r--crypto/src/asn1/tsp/Accuracy.cs11
1 files changed, 4 insertions, 7 deletions
diff --git a/crypto/src/asn1/tsp/Accuracy.cs b/crypto/src/asn1/tsp/Accuracy.cs
index 0d64e2dd4..f9cd88014 100644
--- a/crypto/src/asn1/tsp/Accuracy.cs
+++ b/crypto/src/asn1/tsp/Accuracy.cs
@@ -40,20 +40,17 @@ namespace Org.BouncyCastle.Asn1.Tsp
             this.micros = micros;
 		}
 
-		private Accuracy(
-			Asn1Sequence seq)
+		private Accuracy(Asn1Sequence seq)
 		{
 			for (int i = 0; i < seq.Count; ++i)
 			{
 				// seconds
-				if (seq[i] is DerInteger)
+				if (seq[i] is DerInteger derInteger)
 				{
-					seconds = (DerInteger) seq[i];
+					seconds = derInteger;
 				}
-                else if (seq[i] is Asn1TaggedObject)
+                else if (seq[i] is Asn1TaggedObject extra)
 				{
-                    Asn1TaggedObject extra = (Asn1TaggedObject)seq[i];
-
                     switch (extra.TagNo)
                     {
                     case 0: