Tiny cleanup

This commit is contained in:
mlemanczyk committed 2023-01-28 23:19:26 +01:00
1 parent ea1d7d91ba
commit 06ef3d4fa4
1 file changed
+1 -2
+1 -2
View File
@@ -83,8 +83,7 @@ namespace Recyclable.Collections
var sourceBlockCount = source?.Length ?? 0;
int requiredBlockCount = (int)(newCapacity / blockSize) + (newCapacity % blockSize > 0 ? 1 : 0);
Span<T[]> sourceSpan;
Span<T[]> newArraySpan;
Span<T[]> sourceSpan, newArraySpan;
T[][] newMemoryBlocks = requiredBlockCount >= RecyclableDefaults.MinPooledArrayLength
? arrayPool.Rent(requiredBlockCount)
: new T[requiredBlockCount][];