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

This commit is contained in:
Lomanic 2019-08-17 22:02:01 +02:00
parent 9a445d5f6a
commit 58dc3b28aa
1 changed files with 1 additions and 1 deletions

View File

@ -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
} }