Remove redundant null check from DeadLetterQueueReader

Fixes #7948
This commit is contained in:
Rob Bavey 2017-08-09 09:21:25 -04:00
parent edbb1e021f
commit b231036f87
2 changed files with 0 additions and 4 deletions

View file

@ -65,9 +65,6 @@ public final class DeadLetterQueueReader implements Closeable {
currentReader = new RecordIOReader(segment);
byte[] event = currentReader.seekToNextEventPosition(timestamp, (b) -> {
try {
if (b == null){
return null;
}
return DLQEntry.deserialize(b).getEntryTime();
} catch (IOException e) {
return null;

View file

@ -263,7 +263,6 @@ public final class RecordIOReader implements Closeable {
this.channel.position(bufferState.channelPosition);
this.channelPosition = channel.position();
this.currentBlockSizeReadFromChannel = bufferState.currentBlockSizeReadFromChannel;
}
final static class BufferState {