mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-02 11:09:17 -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
|
// 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()
|
return err
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// If no renderer is set use the standard one.
|
// If no renderer is set use the standard one.
|
||||||
|
|||||||
Reference in New Issue
Block a user