Skip to content

Commit 5dbfdba

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 233be31 commit 5dbfdba

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

server/src/main/java/org/elasticsearch/cluster/routing/UnassignedInfo.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -339,12 +339,12 @@ public void writeTo(StreamOutput out) throws IOException {
339339
out.writeByte((byte) Reason.NODE_LEFT.ordinal());
340340
} else if (reason.equals(Reason.UNPROMOTABLE_REPLICA) && out.getTransportVersion().before(VERSION_UNPROMOTABLE_REPLICA_ADDED)) {
341341
out.writeByte((byte) Reason.PRIMARY_FAILED.ordinal());
342-
} else if
343-
(reason.equals(Reason.RESHARD_ADDED) && out.getTransportVersion().before(TransportVersions.UNASSIGENEDINFO_RESHARD_ADDED)) {
344-
out.writeByte((byte) Reason.FORCED_EMPTY_PRIMARY.ordinal());
345-
} else {
346-
out.writeByte((byte) reason.ordinal());
347-
}
342+
} else if (reason.equals(Reason.RESHARD_ADDED)
343+
&& out.getTransportVersion().before(TransportVersions.UNASSIGENEDINFO_RESHARD_ADDED)) {
344+
out.writeByte((byte) Reason.FORCED_EMPTY_PRIMARY.ordinal());
345+
} else {
346+
out.writeByte((byte) reason.ordinal());
347+
}
348348
out.writeLong(unassignedTimeMillis);
349349
// Do not serialize unassignedTimeNanos as System.nanoTime() cannot be compared across different JVMs
350350
out.writeBoolean(delayed);

0 commit comments

Comments
 (0)