Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

Commit 02ba2d9

Browse files
committed
Removed 2x Asserts (Blocks always reference source pools)
1 parent 5e14e55 commit 02ba2d9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Microsoft.AspNet.Server.Kestrel/Infrastructure/MemoryPoolIterator2.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -597,8 +597,7 @@ public void CopyFrom(ArraySegment<byte> buffer)
597597

598598
public void CopyFrom(byte[] data, int offset, int count)
599599
{
600-
Debug.Assert(_block != null);
601-
Debug.Assert(_block.Pool != null);
600+
Debug.Assert(_block != null);
602601
Debug.Assert(_block.Next == null);
603602
Debug.Assert(_block.End == _index);
604603

@@ -640,8 +639,7 @@ public void CopyFrom(byte[] data, int offset, int count)
640639

641640
public unsafe void CopyFromAscii(string data)
642641
{
643-
Debug.Assert(_block != null);
644-
Debug.Assert(_block.Pool != null);
642+
Debug.Assert(_block != null);
645643
Debug.Assert(_block.Next == null);
646644
Debug.Assert(_block.End == _index);
647645

0 commit comments

Comments
 (0)