chore: fix lint issues (#534)

This commit is contained in:
Ayman Bagabas
2024-05-31 16:48:29 -04:00
committed by GitHub
parent 296fcf77fa
commit 11a9fccd58
7 changed files with 26 additions and 24 deletions
+2 -2
View File
@@ -409,7 +409,7 @@ func (m *Model) FromValues(value, separator string) {
type StyleFunc func(row, col int, value string) lipgloss.Style
func (m Model) headersView() string {
var s = make([]string, 0, len(m.cols))
s := make([]string, 0, len(m.cols))
for _, col := range m.cols {
if col.Width <= 0 {
continue
@@ -422,7 +422,7 @@ func (m Model) headersView() string {
}
func (m *Model) renderRow(r int) string {
var s = make([]string, 0, len(m.cols))
s := make([]string, 0, len(m.cols))
for i, value := range m.rows[r] {
if m.cols[i].Width <= 0 {
continue