From 9995dc06402d6dbe33862c151eab6150c4de14e5 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Fri, 10 Mar 2023 13:28:46 +0700 Subject: Refactor IDisposable implementations --- crypto/src/asn1/Asn1InputStream.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'crypto/src/asn1/Asn1InputStream.cs') diff --git a/crypto/src/asn1/Asn1InputStream.cs b/crypto/src/asn1/Asn1InputStream.cs index bd93d4758..b4a87eae1 100644 --- a/crypto/src/asn1/Asn1InputStream.cs +++ b/crypto/src/asn1/Asn1InputStream.cs @@ -82,10 +82,7 @@ namespace Org.BouncyCastle.Asn1 protected override void Dispose(bool disposing) { - if (disposing) - { - tmpBuffers = null; - } + tmpBuffers = null; if (m_leaveOpen) { -- cgit 1.4.1