Skip to content

Commit c52d806

Browse files
committed
Don't need to consider the case ReadableByteChannel#read returns 0
since the buffer size must be more than 0
1 parent 60ddba3 commit c52d806

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

msgpack-core/src/main/java/org/msgpack/core/buffer/ChannelBufferInput.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public MessageBuffer next()
6767
return null;
6868
}
6969
b.flip();
70-
return b.remaining() == 0 ? null : buffer.slice(0, b.limit());
70+
return buffer.slice(0, b.limit());
7171
}
7272

7373
@Override

0 commit comments

Comments
 (0)