1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-24 05:36:19 +02:00

fix lint issues

This commit is contained in:
Jesse Duffield 2021-04-05 12:19:45 +10:00
parent 8ed490c780
commit 916f349d47

View File

@ -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 {