Condense a scoped if-statement

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

7
tea.go
View File

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