forked from Mirrors/bubbletea
chore: fix linter warnings
This commit is contained in:
parent
273f59bd11
commit
58c5e01d8c
|
@ -5,7 +5,7 @@ type nilRenderer struct{}
|
|||
func (n nilRenderer) start() {}
|
||||
func (n nilRenderer) stop() {}
|
||||
func (n nilRenderer) kill() {}
|
||||
func (n nilRenderer) write(v string) {}
|
||||
func (n nilRenderer) write(_ string) {}
|
||||
func (n nilRenderer) repaint() {}
|
||||
func (n nilRenderer) clearScreen() {}
|
||||
func (n nilRenderer) altScreen() bool { return false }
|
||||
|
|
6
tea.go
6
tea.go
|
@ -314,6 +314,7 @@ func (p *Program) eventLoop(model Model, cmds chan Cmd) (Model, error) {
|
|||
if cmd == nil {
|
||||
continue
|
||||
}
|
||||
|
||||
msg := cmd()
|
||||
if batchMsg, ok := msg.(BatchMsg); ok {
|
||||
g, _ := errgroup.WithContext(p.ctx)
|
||||
|
@ -324,12 +325,13 @@ func (p *Program) eventLoop(model Model, cmds chan Cmd) (Model, error) {
|
|||
return nil
|
||||
})
|
||||
}
|
||||
|
||||
//nolint:errcheck
|
||||
g.Wait() // wait for all commands from batch msg to finish
|
||||
continue
|
||||
} else {
|
||||
p.Send(msg)
|
||||
}
|
||||
|
||||
p.Send(msg)
|
||||
}
|
||||
}()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue