mirror of https://github.com/apache/lucene.git
LUCENE-1832: Remove unnecessary null check in TermInfosReader.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@806637 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9e18f599d1
commit
a83d337f41
|
@ -246,7 +246,7 @@ final class TermInfosReader {
|
|||
if (size == 0) return null;
|
||||
|
||||
SegmentTermEnum enumerator = getThreadResources().termEnum;
|
||||
if (enumerator != null && enumerator.term() != null &&
|
||||
if (enumerator.term() != null &&
|
||||
position >= enumerator.position &&
|
||||
position < (enumerator.position + totalIndexInterval))
|
||||
return scanEnum(enumerator, position); // can avoid seek
|
||||
|
|
Loading…
Reference in New Issue