Skip to content

Commit 480b3e9

Browse files
committed
DRY nit
1 parent e2b7c70 commit 480b3e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Middleware/OutputCaching/src/FormatterBinaryReader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public FormatterBinaryReader(ReadOnlyMemory<byte> content)
3333

3434
public byte ReadByte()
3535
{
36-
if (offset >= length)
36+
if (IsEOF)
3737
{
3838
ThrowEndOfStream();
3939
}

0 commit comments

Comments
 (0)