fix: Referrers() may return nil by didebughu · Pull Request #46 · ryanrolds/sqlclosecheck (original) (raw)
When I running golangci-lint with the sqlclosecheck@v0.5.1 a runtime panic occurs due to a nil pointer dereference because ssa.Value.Referrers() may return nil.
This fix only adds defensive checks. I run the tests (make test) and test results diffs show no differences.