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:
Michael Busch 2009-08-21 16:47:48 +00:00
parent 9e18f599d1
commit a83d337f41
1 changed files with 1 additions and 1 deletions

View File

@ -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