Skip to content

Commit

Permalink
Fix code read err being dropped
Browse files Browse the repository at this point in the history
  • Loading branch information
csnewman committed Apr 30, 2024
1 parent 440f9e6 commit aefe164
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code.go
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ func (r *Reader) ReadCodeAndParse(off uint32) (CodeNode, error) {

c, err := r.ReadCode(off)
if err != nil {
return res, nil
return res, err
}

res.RegisterCount = c.RegisterCount
Expand Down

0 comments on commit aefe164

Please sign in to comment.