Skip to content

Commit

Permalink
delete redundant "cleanup = nil"
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinav authored Sep 6, 2022
1 parent 9306252 commit a034565
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions testmain.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ func VerifyTestMain(m TestingM, options ...Option) {
defer func() { cleanup(exitCode) }()

if exitCode == 0 {
// Find does not appreciate cleanup option.
opts.cleanup = nil
if err := Find(opts); err != nil {
fmt.Fprintf(_osStderr, "goleak: Errors on successful test run: %v\n", err)
exitCode = 1
Expand Down

0 comments on commit a034565

Please sign in to comment.