mirror of
https://github.com/apache/druid.git
synced 2025-02-17 07:25:02 +00:00
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…
x
Reference in New Issue
Block a user