From 58dc3b28aaabbc5d4fdd09a8146279276305aa10 Mon Sep 17 00:00:00 2001 From: Lomanic Date: Sat, 17 Aug 2019 22:02:01 +0200 Subject: [PATCH] [process][windows] Amend last commit, don't wrap err in NumThreads() --- process/process_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/process/process_windows.go b/process/process_windows.go index f8610a8..7a6a9de 100644 --- a/process/process_windows.go +++ b/process/process_windows.go @@ -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 }