mirror of https://github.com/apache/lucene.git
Removed duplicate check in SpanGradientFormatter (#11762)
This commit is contained in:
parent
a426c6fec3
commit
5de685cfba
|
@ -34,7 +34,6 @@ public class SpanGradientFormatter extends GradientFormatter {
|
|||
|
||||
@Override
|
||||
public String highlightTerm(String originalText, TokenGroup tokenGroup) {
|
||||
if (tokenGroup.getTotalScore() == 0) return originalText;
|
||||
float score = tokenGroup.getTotalScore();
|
||||
if (score == 0) {
|
||||
return originalText;
|
||||
|
|
Loading…
Reference in New Issue