all: remove redundant err declarations (#3855)

This commit is contained in:
Oleksandr Redko
2024-11-12 18:04:22 +02:00
committed by GitHub
parent b4cfc8f6c7
commit 091e5535ab
6 changed files with 0 additions and 9 deletions

View File

@ -1937,7 +1937,6 @@ func (d *Debugger) convertStacktrace(rawlocs []proc.Stackframe, cfg *proc.LoadCo
frame.Err = rawlocs[i].Err.Error()
}
if cfg != nil && rawlocs[i].Current.Fn != nil {
var err error
scope := proc.FrameToScope(d.target.Selected, d.target.Selected.Memory(), nil, 0, rawlocs[i:]...)
locals, err := scope.LocalVariables(*cfg)
if err != nil {