Remove superfluous var declarations

This commit is contained in:
Derek Parker
2015-08-27 16:48:34 -05:00
parent 39378a6541
commit 8be76428c8

View File

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