Skip to content

Commit

Permalink
Inverse logic to return the same value only once.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpountz committed Jan 30, 2024
1 parent 8d08e7f commit 0de75ce
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,11 @@ public PostingsFormat getPostingsFormatForField(String field) {
}

private PostingsFormat internalGetPostingsFormatForField(String field) {
if (mapperService == null) {
return es812PostingsFormat;
}
final PostingsFormat format = mapperService.mappingLookup().getPostingsFormat(field);
if (format != null) {
return format;
if (mapperService != null) {
final PostingsFormat format = mapperService.mappingLookup().getPostingsFormat(field);
if (format != null) {
return format;
}
}
// return our own posting format using PFOR
return es812PostingsFormat;
Expand Down

0 comments on commit 0de75ce

Please sign in to comment.