Removed duplicate check in SpanGradientFormatter (#11762)

This commit is contained in:
Alexander Münch 2022-09-14 14:37:31 +02:00 committed by GitHub
parent a426c6fec3
commit 5de685cfba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

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