summary refs log tree commit diff
path: root/crypto/src/asn1/crmf/Controls.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/asn1/crmf/Controls.cs')
-rw-r--r--crypto/src/asn1/crmf/Controls.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/src/asn1/crmf/Controls.cs b/crypto/src/asn1/crmf/Controls.cs
index 12954f5e8..fd3609cf1 100644
--- a/crypto/src/asn1/crmf/Controls.cs
+++ b/crypto/src/asn1/crmf/Controls.cs
@@ -23,11 +23,14 @@ namespace Org.BouncyCastle.Asn1.Crmf
         {
             if (element == null)
                 throw new ArgumentNullException(nameof(element));
+
             if (element is Controls controls)
                 return controls;
+
             Asn1Sequence asn1Sequence = Asn1Sequence.GetOptional(element);
             if (asn1Sequence != null)
                 return new Controls(asn1Sequence);
+
             return null;
         }