mirror of https://github.com/apache/druid.git
Remove redundant check on optional in BlockingQueueFrameChannel.Writable#isClosed (#16595)
* Remove redundant check on optional in BlockingQueueFrameChannel.Writable#isClosed * Rollback mistake
This commit is contained in:
parent
da1e293a57
commit
eb842d3dda
|
@ -197,7 +197,7 @@ public class BlockingQueueFrameChannel
|
||||||
{
|
{
|
||||||
synchronized (lock) {
|
synchronized (lock) {
|
||||||
final Optional<Either<Throwable, FrameWithPartition>> lastElement = queue.peekLast();
|
final Optional<Either<Throwable, FrameWithPartition>> lastElement = queue.peekLast();
|
||||||
return lastElement != null && END_MARKER.equals(lastElement);
|
return END_MARKER.equals(lastElement);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue