Skip to content

Commit 7f30c6a

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 1764a4d commit 7f30c6a

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/inference/results/RankedDocsResultsTests.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,7 @@ public record RerankExpectation(Map<String, Object> rankedDocFields) {}
8888
public static Map<String, Object> buildExpectationRerank(List<RerankExpectation> rerank) {
8989
return Map.of(
9090
RankedDocsResults.RERANK,
91-
rerank.stream()
92-
.map(
93-
rerankExpectation -> Map.of(
94-
RankedDocsResults.RankedDoc.NAME,
95-
rerankExpectation.rankedDocFields
96-
)
97-
)
98-
.toList()
91+
rerank.stream().map(rerankExpectation -> Map.of(RankedDocsResults.RankedDoc.NAME, rerankExpectation.rankedDocFields)).toList()
9992
);
10093
}
10194
}

0 commit comments

Comments
 (0)