From dcb67fb681737e48960d0ad95a72ef6af1c83be1 Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Thu, 29 May 2025 14:04:14 -0300 Subject: [PATCH] chore: fix linting issues --- table/table.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/table/table.go b/table/table.go index daea993..afd7e89 100644 --- a/table/table.go +++ b/table/table.go @@ -429,7 +429,7 @@ func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) { return m, nil } table := m.table.String() - // TODO make this not hard coded? + // XXX: make this not hard coded? height := lipgloss.Height(table) - 6 switch msg := msg.(type) { @@ -473,7 +473,7 @@ func (m Model) View() string { if !m.useStyleFunc { // Update the position-sensitive styles as the cursor position may have // changed in Update. - m.table.StyleFunc(func(row, col int) lipgloss.Style { + m.table.StyleFunc(func(row, _ int) lipgloss.Style { if row == m.cursor { return m.styles.Selected } @@ -505,7 +505,7 @@ func (m Model) Rows() [][]string { return m.rows } -// GetHeaders returns the current headers. +// Headers returns the current headers. func (m Model) Headers() []string { return m.headers }