summary refs log tree commit diff
path: root/crypto/src/asn1/Asn1OutputStream.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/asn1/Asn1OutputStream.cs')
-rw-r--r--crypto/src/asn1/Asn1OutputStream.cs10
1 files changed, 3 insertions, 7 deletions
diff --git a/crypto/src/asn1/Asn1OutputStream.cs b/crypto/src/asn1/Asn1OutputStream.cs
index 163e3848c..1363aa676 100644
--- a/crypto/src/asn1/Asn1OutputStream.cs
+++ b/crypto/src/asn1/Asn1OutputStream.cs
@@ -1,6 +1,6 @@
 using System;
-using System.IO;
 using System.Diagnostics;
+using System.IO;
 #if NETCOREAPP2_1_OR_GREATER || NETSTANDARD2_1_OR_GREATER
 using System.Buffers.Binary;
 using System.Numerics;
@@ -24,13 +24,9 @@ namespace Org.BouncyCastle.Asn1
         public static Asn1OutputStream Create(Stream output, string encoding)
         {
             if (Asn1Encodable.Der.Equals(encoding))
-            {
                 return new DerOutputStream(output);
-            }
-            else
-            {
-                return new Asn1OutputStream(output);
-            }
+
+            return new Asn1OutputStream(output);
         }
 
         internal Asn1OutputStream(Stream os)