Affects Version/s: 7.0.X EE, Master
Component/s: Search Infrastructure
There is a pointless if statement near the beginning of the HighlightUtil.highlight method. The first if statement in the method says
This is immediately followed by:
This will never be true, since we would have already returned s if it was. Moreover, it wouldn't even make sense to return StringPool.BLANK here. This if statement should be removed.
Steps to Reproduce
In ee-6.2.x, the method where this issue occurs is SearchUtil.highlight