Skip to content

Commit d11d074

Browse files
committed
Spotless
1 parent a2cdfbc commit d11d074

File tree

1 file changed

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

1 file changed

+3
-6
lines changed

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -321,10 +321,9 @@ public BiConsumer<LogicalPlan, Failures> postAnalysisPlanVerification() {
321321
public void postOptimizationVerification(Failures failures) {
322322
// Check that a k has been set
323323
if (k() == null) {
324-
failures.add(Failure.fail(
325-
this,
326-
"Knn function must be used with a LIMIT clause after it to set the number of nearest neighbors to find"
327-
));
324+
failures.add(
325+
Failure.fail(this, "Knn function must be used with a LIMIT clause after it to set the number of nearest neighbors to find")
326+
);
328327
}
329328
}
330329

@@ -387,6 +386,4 @@ public int hashCode() {
387386
return Objects.hash(field(), query(), queryBuilder(), k(), filterExpressions());
388387
}
389388

390-
391-
392389
}

0 commit comments

Comments
 (0)