Skip to content

Commit 94dd5ef

Browse files
committed
Fix incorrect Debug.Assert statements
1 parent 7c2add8 commit 94dd5ef

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Http/WebUtilities/src/HttpResponseStreamWriter.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ public override Task WriteAsync(char[] values, int index, int count)
210210
private async Task WriteAsyncAwaited(char[] values, int index, int count)
211211
{
212212
Debug.Assert(count > 0);
213-
Debug.Assert(_charBufferSize - _charBufferCount > count);
213+
Debug.Assert(_charBufferSize - _charBufferCount < count);
214214

215215
while (count > 0)
216216
{
@@ -220,7 +220,6 @@ private async Task WriteAsyncAwaited(char[] values, int index, int count)
220220
}
221221

222222
CopyToCharBuffer(values, ref index, ref count);
223-
Debug.Assert(count == 0);
224223
}
225224
}
226225

0 commit comments

Comments
 (0)