Skip to content

Commit cf2c8b3

Browse files
committed
Minor variable cleanup
1 parent c30da72 commit cf2c8b3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

server/src/main/java/org/elasticsearch/search/rank/feature/RankFeatureShardPhase.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,7 @@ public static void prepareForFetch(SearchContext searchContext, RankFeatureShard
5555
if (rankFeaturePhaseRankShardContext != null) {
5656
String field = rankFeaturePhaseRankShardContext.getField();
5757
assert field != null : "field must not be null";
58-
searchContext.fetchFieldsContext(
59-
new FetchFieldsContext(Collections.singletonList(new FieldAndFormat(rankFeaturePhaseRankShardContext.getField(), null)))
60-
);
58+
searchContext.fetchFieldsContext(new FetchFieldsContext(Collections.singletonList(new FieldAndFormat(field, null))));
6159
RerankSnippetInput snippets = request.snippets();
6260
if (snippets != null) {
6361
try {

0 commit comments

Comments
 (0)