Skip to content

Commit be0832f

Browse files
committed
Remove unnecessary conditional statement.
1 parent 6cb8478 commit be0832f

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

Terminal.Gui/Views/TabView/TabRowView.cs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -113,17 +113,14 @@ protected override void OnHasFocusChanged (bool newHasFocus, View? previousFocus
113113
base.OnHasFocusChanged (newHasFocus, previousFocusedView, focusedView);
114114
}
115115

116-
/// <inheritdoc />
116+
/// <inheritdoc/>
117117
protected override void OnSubviewLayout (LayoutEventArgs args)
118118
{
119-
if (NeedsLayout)
120-
{
121-
_host._tabLocations = _host.CalculateViewport (Viewport).ToArray ();
119+
_host._tabLocations = _host.CalculateViewport (Viewport).ToArray ();
122120

123-
RenderTabLine ();
121+
RenderTabLine ();
124122

125-
RenderUnderline ();
126-
}
123+
RenderUnderline ();
127124

128125
base.OnSubviewLayout (args);
129126
}

0 commit comments

Comments
 (0)