diff options
Diffstat (limited to 'crypto/src/openssl/PEMWriter.cs')
-rw-r--r-- | crypto/src/openssl/PEMWriter.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/openssl/PEMWriter.cs b/crypto/src/openssl/PEMWriter.cs index e6332ec02..043869cc3 100644 --- a/crypto/src/openssl/PEMWriter.cs +++ b/crypto/src/openssl/PEMWriter.cs @@ -23,8 +23,8 @@ namespace Org.BouncyCastle.OpenSsl } catch (PemGenerationException e) { - if (e.InnerException is IOException) - throw (IOException)e.InnerException; + if (e.InnerException is IOException inner) + throw inner; throw e; } |