mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-02 02:59:09 -07:00
Condense a scoped if-statement
This commit is contained in:
7
tea.go
7
tea.go
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user