Skip to content

Commit

Permalink
Remove redundant null-check
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Gaievski <gaievski@amazon.com>
  • Loading branch information
martin-gaievski committed Jul 6, 2022
1 parent ecb18fd commit 6ad1bda
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public KnnVectorsFormat create(final String field) {
}

private boolean isDenseVectorFieldType(final MappedFieldType mappedFieldType) {
if (mappedFieldType != null && mappedFieldType instanceof DenseVectorFieldMapper.DenseVectorFieldType) {
if (mappedFieldType instanceof DenseVectorFieldMapper.DenseVectorFieldType) {
return true;
}
return false;
Expand Down

0 comments on commit 6ad1bda

Please sign in to comment.