Skip to content

Commit 0e9f2e6

Browse files
committed
Spotless
1 parent 3dac389 commit 0e9f2e6

File tree

1 file changed

+1
-3
lines changed
  • x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/vector

1 file changed

+1
-3
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/vector/Knn.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
package org.elasticsearch.xpack.esql.expression.function.vector;
99

10-
import org.elasticsearch.TransportVersions;
1110
import org.elasticsearch.common.io.stream.NamedWriteableRegistry;
1211
import org.elasticsearch.common.io.stream.StreamInput;
1312
import org.elasticsearch.common.io.stream.StreamOutput;
@@ -181,8 +180,7 @@ private TypeResolution resolveQuery() {
181180
}
182181

183182
private TypeResolution resolveK() {
184-
return isType(k(), dt -> dt == INTEGER, sourceText(), THIRD, "integer")
185-
.and(isFoldable(k(), sourceText(), THIRD))
183+
return isType(k(), dt -> dt == INTEGER, sourceText(), THIRD, "integer").and(isFoldable(k(), sourceText(), THIRD))
186184
.and(isNotNull(k(), sourceText(), THIRD));
187185
}
188186

0 commit comments

Comments
 (0)