[process][windows] Amend last commit, don't wrap err in NumThreads()
This commit is contained in:
parent
9a445d5f6a
commit
58dc3b28aa
|
@ -522,7 +522,7 @@ func (p *Process) NumThreads() (int32, error) {
|
||||||
func (p *Process) NumThreadsWithContext(ctx context.Context) (int32, error) {
|
func (p *Process) NumThreadsWithContext(ctx context.Context) (int32, error) {
|
||||||
_, ret, _, err := getFromSnapProcess(p.Pid)
|
_, ret, _, err := getFromSnapProcess(p.Pid)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, fmt.Errorf("could not get ThreadCount: %s", err)
|
return 0, err
|
||||||
}
|
}
|
||||||
return ret, nil
|
return ret, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue