[process][windows] Amend last commit, don't wrap err in NumThreads()

pull/754/head
Lomanic 6 years ago
parent 9a445d5f6a
commit 58dc3b28aa

@ -522,7 +522,7 @@ func (p *Process) NumThreads() (int32, error) {
func (p *Process) NumThreadsWithContext(ctx context.Context) (int32, error) {
_, ret, _, err := getFromSnapProcess(p.Pid)
if err != nil {
return 0, fmt.Errorf("could not get ThreadCount: %s", err)
return 0, err
}
return ret, nil
}

Loading…
Cancel
Save