minor syntax cleanup
This commit is contained in:
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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user