refactor(table): remove unused cmds variable

This commit is contained in:
Stefan Bildl
2023-03-17 13:47:12 -04:00
committed by Maas Lalani
parent db8de3bf53
commit 3a1a24e211
+1 -3
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.