1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-04-19 12:12:42 +02:00

tasks: don't use a function that requires Go 1.12

This commit is contained in:
Dawid Dziurla 2020-02-23 12:33:30 +01:00 committed by Jesse Duffield
parent fabdda0492
commit 49a2f0191f

View File

@ -59,7 +59,7 @@ func (m *ViewBufferManager) NewCmdTask(cmd *exec.Cmd, linesToRead int) func(chan
go func() { go func() {
<-stop <-stop
if cmd.ProcessState.ExitCode() == -1 { if cmd.ProcessState == nil {
if err := kill(cmd); err != nil { if err := kill(cmd); err != nil {
m.Log.Warn(err) m.Log.Warn(err)
} }