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:
parent
fabdda0492
commit
49a2f0191f
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user