mirror of
https://github.com/go-delve/delve.git
synced 2025-11-02 21:40:22 +08:00
minor syntax cleanup
This commit is contained in:
@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user