Remove redundant check from LabelWithHighlightWidget.

This commit is contained in:
Paul Chote
2020-08-14 13:54:35 +01:00
committed by reaperrr
parent ad75e2be89
commit b833f033bf

View File

@@ -50,12 +50,9 @@ namespace OpenRA.Mods.Common.Widgets
if (highlightStart > 0 && highlightEnd > highlightStart)
{
if (highlightStart > 0)
{
// Normal line segment before highlight
var lineNormal = line.Substring(0, highlightStart);
components.Add((lineNormal, false));
}
// Normal line segment before highlight
var lineNormal = line.Substring(0, highlightStart);
components.Add((lineNormal, false));
// Highlight line segment
var lineHighlight = line.Substring(highlightStart + 1, highlightEnd - highlightStart - 1);