Do not shadow err var in typecast

This commit is contained in:
Derek Parker 2015-06-11 22:25:05 -05:00
parent d59ef1371b
commit d66dfbef54

@ -217,7 +217,7 @@ func (thread *ThreadContext) setNextTempBreakpoints(curpc uint64, pcs []uint64)
continue
}
if _, err := thread.dbp.TempBreak(pcs[i]); err != nil {
if err, ok := err.(BreakPointExistsError); !ok {
if _, ok := err.(BreakPointExistsError); !ok {
return err
}
}