From 8be76428c87948b6ee011cd8889b42f0abab05b7 Mon Sep 17 00:00:00 2001 From: Derek Parker Date: Thu, 27 Aug 2015 16:48:34 -0500 Subject: [PATCH] Remove superfluous var declarations --- proc/proc_darwin.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/proc/proc_darwin.go b/proc/proc_darwin.go index 5c837cb2..19149d3f 100644 --- a/proc/proc_darwin.go +++ b/proc/proc_darwin.go @@ -267,10 +267,6 @@ func (dbp *Process) findExecutable(path string) (*macho.File, error) { } func (dbp *Process) trapWait(pid int) (*Thread, error) { - var ( - th *Thread - err error - ) for { port := C.mach_port_wait(dbp.os.portSet) @@ -299,7 +295,7 @@ func (dbp *Process) trapWait(pid int) (*Thread, error) { // Since we cannot be notified of new threads on OS X // this is as good a time as any to check for them. dbp.updateThreadList() - th, err = dbp.handleBreakpointOnThread(int(port)) + th, err := dbp.handleBreakpointOnThread(int(port)) if err != nil { if _, ok := err.(NoBreakpointError); !ok { return nil, err