Skip to content

Commit dbb6409

Browse files
committed
Lint.
1 parent 8f9921f commit dbb6409

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/inference/CompletionOperator.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ protected BulkInferenceRequestIterator requests(Page inputPage) {
7979
return new BulkInferenceRequestIterator() {
8080
private int currentPos = 0;
8181
BytesRef readBuffer = new BytesRef();
82+
8283
@Override
8384
public boolean hasNext() {
8485
return currentPos < promptBlock.getPositionCount();
@@ -113,7 +114,7 @@ public void close() {
113114
} catch (Exception e) {
114115
promptBlock.allowPassingToDifferentDriver();
115116
Releasables.closeExpectNoException(promptBlock);
116-
throw(e);
117+
throw (e);
117118
}
118119
}
119120

@@ -168,7 +169,7 @@ public Page buildOutput() {
168169
} catch (Exception e) {
169170
releasePageOnAnyThread(inputPage);
170171
Releasables.closeExpectNoException(outputBlockBuilder);
171-
throw(e);
172+
throw (e);
172173
}
173174
}
174175

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/inference/RerankOperator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public void close() {
136136
} catch (Exception e) {
137137
inputBlock.allowPassingToDifferentDriver();
138138
Releasables.closeExpectNoException(inputBlock);
139-
throw(e);
139+
throw (e);
140140
}
141141
}
142142

@@ -189,7 +189,7 @@ public void onInferenceResults(RankedDocsResults results) {
189189
} catch (Exception e) {
190190
releasePageOnAnyThread(inputPage);
191191
Releasables.closeExpectNoException(scoreBlockBuilder);
192-
throw(e);
192+
throw (e);
193193
}
194194
}
195195

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/inference/RerankOperatorTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ protected RankedDocsResults mockInferenceResult(InferenceAction.Request request)
123123
}
124124

125125
private float score(int rank) {
126-
return 1f/ (rank % 20);
126+
return 1f / (rank % 20);
127127
}
128128

129129
private ColumnInfoImpl columnInfo(int channel) {

0 commit comments

Comments
 (0)