refactor(table): remove unused cmds variable

This commit is contained in:
Stefan Bildl 2023-02-26 14:23:28 +01:00 committed by Maas Lalani
parent db8de3bf53
commit 3a1a24e211

View File

@ -188,8 +188,6 @@ func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) {
return m, nil
}
var cmds []tea.Cmd
switch msg := msg.(type) {
case tea.KeyMsg:
switch {
@ -214,7 +212,7 @@ func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) {
}
}
return m, tea.Batch(cmds...)
return m, nil
}
// Focused returns the focus state of the table.