Skip to content

Commit af89489

Browse files
CR: comments
1 parent 835639a commit af89489

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

server/src/main/java/org/elasticsearch/transport/OutboundHandler.java

+3-5
Original file line numberDiff line numberDiff line change
@@ -286,11 +286,9 @@ public static BytesReference serialize(
286286

287287
final int variableHeaderLength = Math.toIntExact(byteStreamOutput.position() - TcpHeader.HEADER_SIZE);
288288
BytesReference message = serializeMessageBody(writeable, compressionScheme, version, byteStreamOutput);
289-
byte status;
290-
if (requestAction != null) {
291-
status = 0;
292-
} else {
293-
status = TransportStatus.setResponse((byte) 0);
289+
byte status = 0;
290+
if (requestAction == null) {
291+
status = TransportStatus.setResponse(status);
294292
}
295293
if (isHandshake) {
296294
status = TransportStatus.setHandshake(status);

0 commit comments

Comments
 (0)