mirror of
https://github.com/go-delve/delve.git
synced 2025-10-29 17:56:45 +08:00
Remove superfluous var declarations
This commit is contained in:
@ -267,10 +267,6 @@ func (dbp *Process) findExecutable(path string) (*macho.File, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (dbp *Process) trapWait(pid int) (*Thread, error) {
|
func (dbp *Process) trapWait(pid int) (*Thread, error) {
|
||||||
var (
|
|
||||||
th *Thread
|
|
||||||
err error
|
|
||||||
)
|
|
||||||
for {
|
for {
|
||||||
port := C.mach_port_wait(dbp.os.portSet)
|
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
|
// Since we cannot be notified of new threads on OS X
|
||||||
// this is as good a time as any to check for them.
|
// this is as good a time as any to check for them.
|
||||||
dbp.updateThreadList()
|
dbp.updateThreadList()
|
||||||
th, err = dbp.handleBreakpointOnThread(int(port))
|
th, err := dbp.handleBreakpointOnThread(int(port))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if _, ok := err.(NoBreakpointError); !ok {
|
if _, ok := err.(NoBreakpointError); !ok {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|||||||
Reference in New Issue
Block a user