We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29f9dbd commit e0ecc3cCopy full SHA for e0ecc3c
server/src/main/java/org/elasticsearch/common/unit/ByteSizeValue.java
@@ -132,13 +132,8 @@ public void writeTo(StreamOutput out) throws IOException {
132
}
133
134
private static boolean alwaysUseBytes(TransportVersion tv) {
135
- if (tv.between(BYTE_SIZE_VALUE_ALWAYS_USES_BYTES_1, REVERT_BYTE_SIZE_VALUE_ALWAYS_USES_BYTES_1)) {
136
- return true;
137
- } else if (tv.isPatchFrom(BYTE_SIZE_VALUE_ALWAYS_USES_BYTES_90)) {
138
139
- } else {
140
- return false;
141
- }
+ return tv.isPatchFrom(BYTE_SIZE_VALUE_ALWAYS_USES_BYTES_90)
+ || tv.between(BYTE_SIZE_VALUE_ALWAYS_USES_BYTES_1, REVERT_BYTE_SIZE_VALUE_ALWAYS_USES_BYTES_1);
142
143
144
ByteSizeValue(long sizeInBytes, ByteSizeUnit desiredUnit) {
0 commit comments