Skip to content

Commit 5211628

Browse files
committed
spotless
1 parent 2902989 commit 5211628

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

server/src/main/java/org/elasticsearch/index/mapper/vectors/DenseVectorFieldMapper.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,7 +1289,9 @@ public final boolean equals(Object other) {
12891289
return false;
12901290
}
12911291
IndexOptions otherOptions = (IndexOptions) other;
1292-
return Objects.equals(type, otherOptions.type) && Objects.equals(rescoreVector, otherOptions.rescoreVector) && doEquals(otherOptions);
1292+
return Objects.equals(type, otherOptions.type)
1293+
&& Objects.equals(rescoreVector, otherOptions.rescoreVector)
1294+
&& doEquals(otherOptions);
12931295
}
12941296

12951297
@Override
@@ -2265,8 +2267,7 @@ && isNotUnitVector(squaredMagnitude)) {
22652267
// By default utilize the quantized oversample is configured
22662268
// allow the user provided at query time overwrite
22672269
Float oversample = queryOversample;
2268-
if (oversample == null
2269-
&& indexOptions.rescoreVector != null) {
2270+
if (oversample == null && indexOptions.rescoreVector != null) {
22702271
oversample = indexOptions.rescoreVector.oversample;
22712272
}
22722273
boolean rescore = needsRescore(oversample);

0 commit comments

Comments
 (0)