Skip to content

Commit

Permalink
pkg/analyzer: put back actionUnvaluedDefer
Browse files Browse the repository at this point in the history
  • Loading branch information
hallabro committed Aug 16, 2023
1 parent a83737f commit 30a39af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/analyzer/analyzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const (
actionPassed
actionClosed
actionUnvaluedCall
actionUnvaluedDefer
actionNoOp
)

Expand Down Expand Up @@ -256,6 +257,8 @@ func getAction(instr ssa.Instruction, targetTypes []any) action {
return actionClosed
}
}

return actionUnvaluedDefer
case *ssa.Call:
if instr.Call.Value == nil {
return actionUnvaluedCall
Expand Down

0 comments on commit 30a39af

Please sign in to comment.