Condense a scoped if-statement

This commit is contained in:
Christian Rocha
2021-07-29 12:39:13 -04:00
parent 8f03848f54
commit 3a9ede46f6

5
tea.go
View File

@@ -455,12 +455,9 @@ func (p *Program) Start() error {
// Check if output is a TTY before entering raw mode, hiding the cursor and // Check if output is a TTY before entering raw mode, hiding the cursor and
// so on. // so on.
{ if err := p.initTerminal(); err != nil {
err := p.initTerminal()
if err != nil {
return err return err
} }
}
// If no renderer is set use the standard one. // If no renderer is set use the standard one.
if p.renderer == nil { if p.renderer == nil {