Skip to content

Commit 4f5a1a8

Browse files
committed
Widgets.go: fix gocritic lint error
1 parent db1826d commit 4f5a1a8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Widgets.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ func (l *RowWidget) Build() {
4444
*PopupWidget, *TabItemWidget:
4545
// noop
4646
default:
47-
switch w.(type) {
48-
case *LabelWidget:
47+
if _, isLabel := w.(*LabelWidget); isLabel {
4948
AlignTextToFramePadding()
5049
}
5150

0 commit comments

Comments
 (0)