From fdeafa10e2dcfee734d050f2f11ab50a350f69cc Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Thu, 16 Mar 2023 12:41:05 +0700 Subject: Fix rethrow syntax - see https://github.com/bcgit/bc-csharp/issues/425 --- crypto/src/openssl/PEMReader.cs | 4 ++-- crypto/src/openssl/PEMWriter.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'crypto/src/openssl') diff --git a/crypto/src/openssl/PEMReader.cs b/crypto/src/openssl/PEMReader.cs index a2c4fd1d6..cb6950c47 100644 --- a/crypto/src/openssl/PEMReader.cs +++ b/crypto/src/openssl/PEMReader.cs @@ -356,9 +356,9 @@ namespace Org.BouncyCastle.OpenSsl return new AsymmetricCipherKeyPair(pubSpec, privSpec); } - catch (IOException e) + catch (IOException) { - throw e; + throw; } catch (Exception e) { diff --git a/crypto/src/openssl/PEMWriter.cs b/crypto/src/openssl/PEMWriter.cs index 58b6156d5..504ea9e4b 100644 --- a/crypto/src/openssl/PEMWriter.cs +++ b/crypto/src/openssl/PEMWriter.cs @@ -31,7 +31,7 @@ namespace Org.BouncyCastle.OpenSsl if (e.InnerException is IOException inner) throw inner; - throw e; + throw; } } } -- cgit 1.5.1