Skip to content

Commit a06b829

Browse files
committed
refactor: remove redundant else
1 parent 3adbaa6 commit a06b829

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

go/cmd/util.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ func (s Settings) BaseInfoTable() *table.Table {
4141
t.StyleFunc(func(row, col int) lipgloss.Style {
4242
if col == 0 {
4343
return lipgloss.NewStyle().Align(lipgloss.Center).Width(16).Foreground(lipgloss.Color("#B99470")).Bold(true)
44-
} else {
45-
return lipgloss.NewStyle().Align(lipgloss.Center).Width(16).Foreground(lipgloss.Color("#F0ECE5"))
4644
}
45+
46+
return lipgloss.NewStyle().Align(lipgloss.Center).Width(16).Foreground(lipgloss.Color("#F0ECE5"))
4747
})
4848

4949
t.Rows(rows...)
@@ -62,9 +62,9 @@ func (s Settings) BypassListTable() *table.Table {
6262
t.StyleFunc(func(row, col int) lipgloss.Style {
6363
if row == 0 {
6464
return lipgloss.NewStyle().Align(lipgloss.Center).Width(32).Foreground(lipgloss.Color("#B99470")).Bold(true)
65-
} else {
66-
return lipgloss.NewStyle().Align(lipgloss.Center).Width(32).Foreground(lipgloss.Color("#F0ECE5"))
6765
}
66+
67+
return lipgloss.NewStyle().Align(lipgloss.Center).Width(32).Foreground(lipgloss.Color("#F0ECE5"))
6868
})
6969

7070
return t.Headers(headers...).Rows(slices.Collect(func(yield func([]string) bool) {
@@ -86,9 +86,9 @@ func (s Settings) String() string {
8686
func CheckMark(b bool) string {
8787
if b {
8888
return "✓"
89-
} else {
90-
return "𐄂"
9189
}
90+
91+
return "𐄂"
9292
}
9393

9494
func Render(s winproxy.Settings) Settings {

0 commit comments

Comments
 (0)