Skip to content

Commit 9b424b3

Browse files
authored
stub: remove unnecessary condition in if statement (#12437)
This PR removes unnecessary condition inside an `if` statement in BlockingClientCall class. There is no functional change. Fixes #12425
1 parent 599a0a1 commit 9b424b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stub/src/main/java/io/grpc/stub/BlockingClientCall.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ private boolean write(boolean waitForever, ReqT request, long endNanoTime)
225225
(x) -> x.call.isReady() || x.closeState.get() != null;
226226
executor.waitAndDrainWithTimeout(waitForever, endNanoTime, predicate, this);
227227
CloseState savedCloseState = closeState.get();
228-
if (savedCloseState == null || savedCloseState.status == null) {
228+
if (savedCloseState == null) {
229229
call.sendMessage(request);
230230
return true;
231231
} else if (savedCloseState.status.isOk()) {

0 commit comments

Comments
 (0)