We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad75e2b commit b833f03Copy full SHA for b833f03
OpenRA.Mods.Common/Widgets/LabelWithHighlightWidget.cs
@@ -50,12 +50,9 @@ protected LabelWithHighlightWidget(LabelWithHighlightWidget other)
50
51
if (highlightStart > 0 && highlightEnd > highlightStart)
52
{
53
- if (highlightStart > 0)
54
- {
55
- // Normal line segment before highlight
56
- var lineNormal = line.Substring(0, highlightStart);
57
- components.Add((lineNormal, false));
58
- }
+ // Normal line segment before highlight
+ var lineNormal = line.Substring(0, highlightStart);
+ components.Add((lineNormal, false));
59
60
// Highlight line segment
61
var lineHighlight = line.Substring(highlightStart + 1, highlightEnd - highlightStart - 1);
0 commit comments