From 860f62311231bf03a9224d704afb7f23b39df7ef Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Tue, 28 Sep 2021 13:49:54 -0400 Subject: [PATCH] Remove reundant "if ...; err != nil" check --- tty.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tty.go b/tty.go index c9006cc..0aadf9e 100644 --- a/tty.go +++ b/tty.go @@ -27,9 +27,5 @@ func (p Program) restoreTerminal() error { } } - if err := p.restoreInput(); err != nil { - return err - } - - return nil + return p.restoreInput() }