From f280ba2a3bf1728c081f3f22ae08046fd75d7cd6 Mon Sep 17 00:00:00 2001 From: Derek Parker Date: Mon, 27 Oct 2014 17:50:47 -0500 Subject: [PATCH] minor syntax cleanup --- proctl/proctl_linux_amd64.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/proctl/proctl_linux_amd64.go b/proctl/proctl_linux_amd64.go index 3ce5fe42..6fb3e5f2 100644 --- a/proctl/proctl_linux_amd64.go +++ b/proctl/proctl_linux_amd64.go @@ -108,9 +108,8 @@ func NewDebugProcess(pid int) (*DebuggedProcess, error) { } func (dbp *DebuggedProcess) AttachThread(tid int) (*ThreadContext, error) { - var ( - status syscall.WaitStatus - ) + var status syscall.WaitStatus + if thread, ok := dbp.Threads[tid]; ok { return thread, nil }