提交 a0b60775 编写于 作者: K kestrelcjx

chore(process): change the return value

上级 3b61bb28
......@@ -752,7 +752,7 @@ func (p *Process) OpenFilesWithContext(ctx context.Context) ([]OpenFilesStat, er
fileExists[fileName] = true
}
case <-ctx.Done():
return files, nil
return files, ctx.Err()
}
}
......
......@@ -739,7 +739,7 @@ func (p *Process) OpenFilesWithContext(ctx context.Context) ([]OpenFilesStat, er
fileExists[fileName] = true
}
case <-ctx.Done():
return files, nil
return files, ctx.Err()
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册