From 650a63828fde5ca56b85b1167b9a7cb548e9391e Mon Sep 17 00:00:00 2001 From: mlemanczyk Date: Sun, 29 Jan 2023 21:30:15 +0100 Subject: [PATCH] Unnecessary _capacity assignment removed. It's already set by RecyclableList.Clear. --- Recyclable.Collections/RecyclableList.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/Recyclable.Collections/RecyclableList.cs b/Recyclable.Collections/RecyclableList.cs index cdb6a3e..8a34ca5 100644 --- a/Recyclable.Collections/RecyclableList.cs +++ b/Recyclable.Collections/RecyclableList.cs @@ -539,7 +539,6 @@ namespace Recyclable.Collections if (_capacity > 0) { Clear(); - _capacity = 0; if (_memoryBlocks.Length >= RecyclableDefaults.MinPooledArrayLength) { _memoryBlocksPool.Return(_memoryBlocks);