Remove reundant "if ...; err != nil" check

This commit is contained in:
Christian Rocha 2021-09-28 13:49:54 -04:00
parent e402e8b567
commit 860f623112
1 changed files with 1 additions and 5 deletions

6
tty.go
View File

@ -27,9 +27,5 @@ func (p Program) restoreTerminal() error {
}
}
if err := p.restoreInput(); err != nil {
return err
}
return nil
return p.restoreInput()
}