1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-11-26 09:00:57 +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() {
<-stop
if cmd.ProcessState.ExitCode() == -1 {
if cmd.ProcessState == nil {
if err := kill(cmd); err != nil {
m.Log.Warn(err)
}