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:
Virushade 2024-06-14 17:51:07 +08:00 committed by GitHub
parent da1e293a57
commit eb842d3dda
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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);
} }
} }
} }