simplification of code

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150376 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Christoph Goller 2004-07-25 15:10:36 +00:00
parent 4c96baa13a
commit b4f4634fd6
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ final class TermScorer extends Scorer {
public boolean skipTo(int target) throws IOException {
// first scan in cache
for (pointer++; pointer < pointerMax; pointer++) {
if (!(target > docs[pointer])) {
if (docs[pointer] >= target) {
doc = docs[pointer];
return true;
}