minor syntax cleanup

This commit is contained in:
Derek Parker 2014-10-27 17:50:47 -05:00
parent 54788de89b
commit f280ba2a3b

@ -108,9 +108,8 @@ func NewDebugProcess(pid int) (*DebuggedProcess, error) {
} }
func (dbp *DebuggedProcess) AttachThread(tid int) (*ThreadContext, error) { func (dbp *DebuggedProcess) AttachThread(tid int) (*ThreadContext, error) {
var ( var status syscall.WaitStatus
status syscall.WaitStatus
)
if thread, ok := dbp.Threads[tid]; ok { if thread, ok := dbp.Threads[tid]; ok {
return thread, nil return thread, nil
} }