Removed unnecessary conditional
This commit is contained in:
parent
cc3b07c655
commit
03268034c7
@ -78,7 +78,7 @@ public class HeapChannelBufferFactory extends AbstractChannelBufferFactory {
|
||||
}
|
||||
|
||||
public ChannelBuffer getBuffer(ByteBuffer nioBuffer) {
|
||||
if (!nioBuffer.isReadOnly() && nioBuffer.hasArray()) {
|
||||
if (nioBuffer.hasArray()) {
|
||||
return ChannelBuffers.wrappedBuffer(nioBuffer);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user