mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-02 02:59:09 -07:00
chore: clean up linter errors in examples
This commit is contained in:
@@ -28,7 +28,6 @@ func (m model) Init() tea.Cmd {
|
||||
|
||||
func (m model) Update(message tea.Msg) (tea.Model, tea.Cmd) {
|
||||
switch msg := message.(type) {
|
||||
|
||||
case tea.KeyMsg:
|
||||
switch msg.String() {
|
||||
case "q", "esc", "ctrl+c":
|
||||
@@ -36,12 +35,11 @@ func (m model) Update(message tea.Msg) (tea.Model, tea.Cmd) {
|
||||
}
|
||||
|
||||
case tickMsg:
|
||||
m -= 1
|
||||
m--
|
||||
if m <= 0 {
|
||||
return m, tea.Quit
|
||||
}
|
||||
return m, tick()
|
||||
|
||||
}
|
||||
|
||||
return m, nil
|
||||
|
||||
Reference in New Issue
Block a user