diff options
Diffstat (limited to 'crypto/src/bcpg/BcpgInputStream.cs')
-rw-r--r-- | crypto/src/bcpg/BcpgInputStream.cs | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/crypto/src/bcpg/BcpgInputStream.cs b/crypto/src/bcpg/BcpgInputStream.cs index 44d2f9c02..03aa717d3 100644 --- a/crypto/src/bcpg/BcpgInputStream.cs +++ b/crypto/src/bcpg/BcpgInputStream.cs @@ -1,12 +1,11 @@ using System; using System.IO; -using Org.BouncyCastle.Utilities; using Org.BouncyCastle.Utilities.IO; namespace Org.BouncyCastle.Bcpg { - /// <remarks>Reader for PGP objects.</remarks> + /// <remarks>Reader for PGP objects.</remarks> public class BcpgInputStream : BaseInputStream { @@ -14,13 +13,10 @@ namespace Org.BouncyCastle.Bcpg private bool next = false; private int nextB; - internal static BcpgInputStream Wrap( - Stream inStr) + internal static BcpgInputStream Wrap(Stream inStr) { - if (inStr is BcpgInputStream) - { - return (BcpgInputStream) inStr; - } + if (inStr is BcpgInputStream bcpg) + return bcpg; return new BcpgInputStream(inStr); } |