dont call doExplain twice

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@882374 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2009-11-20 01:04:29 +00:00
parent c62fb270d6
commit 613aca9471
1 changed files with 1 additions and 1 deletions

View File

@ -349,7 +349,7 @@ public class CustomScoreQuery extends Query {
@Override
public Explanation explain(IndexReader reader, int doc) throws IOException {
Explanation explain = doExplain(reader, doc);
return explain == null ? new Explanation(0.0f, "no matching docs") : doExplain(reader, doc);
return explain == null ? new Explanation(0.0f, "no matching docs") : explain;
}
private Explanation doExplain(IndexReader reader, int doc) throws IOException {