Do not shadow err var in typecast
This commit is contained in:
parent
d59ef1371b
commit
d66dfbef54
@ -217,7 +217,7 @@ func (thread *ThreadContext) setNextTempBreakpoints(curpc uint64, pcs []uint64)
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if _, err := thread.dbp.TempBreak(pcs[i]); err != nil {
|
if _, err := thread.dbp.TempBreak(pcs[i]); err != nil {
|
||||||
if err, ok := err.(BreakPointExistsError); !ok {
|
if _, ok := err.(BreakPointExistsError); !ok {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user