Condense/scope init cmd

This commit is contained in:
Christian Rocha 2021-09-07 15:29:13 -04:00
parent c5ed2b4a01
commit ad19c664fe
1 changed files with 1 additions and 2 deletions

3
tea.go
View File

@ -340,8 +340,7 @@ func (p *Program) Start() error {
// Initialize program // Initialize program
model := p.initialModel model := p.initialModel
initCmd := model.Init() if initCmd := model.Init(); initCmd != nil {
if initCmd != nil {
go func() { go func() {
cmds <- initCmd cmds <- initCmd
}() }()