summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2021-04-05 12:19:45 +1000
committerJesse Duffield <jessedduffield@gmail.com>2021-04-06 19:34:32 +1000
commit549d73a0b1b46a94cf49257f1559b56f00113834 (patch)
tree44434b1fc3718c4e31c04ba643758c7042503d5b /test
parent8301bba8ad3df46b4cecea687aac027df6d42f76 (diff)
fix lint issues
Diffstat (limited to 'test')
-rw-r--r--test/lazyintegration/main.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/lazyintegration/main.go b/test/lazyintegration/main.go
index 60c5e90d7..19da5135e 100644
--- a/test/lazyintegration/main.go
+++ b/test/lazyintegration/main.go
@@ -259,7 +259,9 @@ func main() {
}
func (app *App) runSubprocess(cmd *exec.Cmd) {
- gocui.Screen.Suspend()
+ if err := gocui.Screen.Suspend(); err != nil {
+ panic(err)
+ }
cmd.Stdin = os.Stdin
cmd.Stderr = os.Stderr
@@ -274,7 +276,9 @@ func (app *App) runSubprocess(cmd *exec.Cmd) {
fmt.Fprintf(os.Stdout, "\n%s", coloredString("press enter to return", color.FgGreen))
fmt.Scanln() // wait for enter press
- gocui.Screen.Resume()
+ if err := gocui.Screen.Resume(); err != nil {
+ panic(err)
+ }
}
func (app *App) layout(g *gocui.Gui) error {