Unnecessary _capacity assignment removed. It's already set by RecyclableList.Clear.

This commit is contained in:
mlemanczyk committed 2023-01-29 21:30:15 +01:00
1 parent d07c77c906
commit 650a63828f
1 file changed
-1
-1
View File
@@ -539,7 +539,6 @@ namespace Recyclable.Collections
if (_capacity > 0)
{
Clear();
_capacity = 0;
if (_memoryBlocks.Length >= RecyclableDefaults.MinPooledArrayLength)
{
_memoryBlocksPool.Return(_memoryBlocks);