-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
At the moment they are always printed at the end of the blockstmt. However, in the case of a return, they are bypassed
go func() {
defer func() { <-limitCh }()
defer wg.Done()
path, version, agent, ok, err := isGo(pr)
if err != nil {
// TODO(jbd): Return a list of errors.
}
if !ok {
return
}
found <-0
}()
for example in this case, the return will bypass the deferstmts.
One solution is to add the deferstmts at the end of the body of the proctype being generated.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels