mirror of
https://github.com/zoriya/bubbles.git
synced 2026-08-09 06:36:10 +00:00
refactor(table): remove unused cmds variable
This commit is contained in:
committed by
Maas Lalani
parent
db8de3bf53
commit
3a1a24e211
+1
-3
@@ -188,8 +188,6 @@ func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) {
|
|||||||
return m, nil
|
return m, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
var cmds []tea.Cmd
|
|
||||||
|
|
||||||
switch msg := msg.(type) {
|
switch msg := msg.(type) {
|
||||||
case tea.KeyMsg:
|
case tea.KeyMsg:
|
||||||
switch {
|
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.
|
// Focused returns the focus state of the table.
|
||||||
|
|||||||
Reference in New Issue
Block a user